MQTT Publish using Simcom Modules
Simcom SIM7XXX modules has support for MQTT feature through the AT Commands.
To publish MQTT with Simcom modules,
- Connect to the MQTT browser
- Publish to a topic using the AT+SMPUB command.
Related Topics
- How MQTT works?
- MQTT – Connect to Broker
- MQTT Publish
- MQTT Subscribe
Try AT Command Tester tool to test MQTT features with the Simcom Modules. In below example,
- With one instance of the AT Command Tester tool, a MQTT connection is established to ‘test.mosquitto.org’ server using the Simcom SIM7080G module.
- With another instance of the AT Command Tester tool, a MQTT connection is established to ‘test.mosquitto.org’ using the PC client.
- The MQTT client with Simcom module publishes to the topic ‘SensorReadings’.
- The MQTT PC client is subscribed to the topic ‘SensorReadings’ and so receives the data published by the Simcom MQTT client.