Reputation: 525
I am a beginner on Zephyr OS and wanted to know if it is possible to implement MQTT on Zephyr OS with Cellular Devices like SIM800 or Quectel BG96 that usually work on UART and support TCP protocol which is the base of MQTT.
I looked through the example for MQTT given for Zephyr which is done over LAN but could not figure out how to implement the same with a cellular device.
Upvotes: 0
Views: 1755
Reputation: 176
MQTT itself does not necessitate TCP as the transport layer but you may need one transport layer. Most of the implementation out there are relying on TCP as the transport layer e.g.:
There is an implementation that only serializes and deserializes MQTT compliant packages. But this implementation is based on the MQTT-SN (sensor-network) standard and needs a MQTT-SN compliant MQTT-gateway or MQTT-Broker. Theses packages you may transfer as you like: As UART stream, memory map IO, etc.
In addition, check to implement and provide a TCP/IP socket to a MQTT client Library that wraps the AT Command specification of both devices:
Upvotes: 2