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.

  • MQTT module default configuration:

    • Broker hostname: mqtt.nordicsemi.academy
    • Device/Client ID: IMEI (International Mobile Equipment Identity)
    • 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