Enable support for MQTT

Asset Tracker Template

tags
Asset Tracker Template

To connect to a generic MQTT server using the Asset Tracker Template, you can use the example Cloud module provided under examples/modules/cloud. This module replaces the default nRF Cloud CoAP cloud integration with a flexible MQTT client implementation.

The MQTT module has the following default configuration:

  • Broker hostname: mqtt.nordicsemi.academy
  • Device and client ID: The International Mobile Equipment Identity (IMEI)
  • Port: 8883
  • TLS: Yes
  • Authentication: Server only
  • CA certificate: examples/modules/cloud/creds/mqtt.nordicsemi.academy.pem
  • Publish topic: <IMEI>/att-pub-topic
  • Subscribe topic: <IMEI>/att-sub-topic