What is the primary role of the MQTT-SN gateway in a sensor network?
Think about how MQTT-SN devices communicate with standard MQTT brokers.
The MQTT-SN gateway converts lightweight MQTT-SN messages from sensors into standard MQTT messages so the broker can understand them.
What output will the MQTT-SN client show after successfully connecting to the gateway?
mqtt-sn-client --connect --gateway 192.168.1.10
Output:Successful connection messages usually confirm the gateway IP and client ID.
The client connects to the MQTT-SN gateway IP and confirms the session with client ID.
Which configuration snippet correctly sets the MQTT-SN gateway to listen on UDP port 1884 and forward messages to MQTT broker at 10.0.0.5:1883?
MQTT-SN default UDP port is 1884; MQTT broker default TCP port is 1883.
The gateway listens on UDP port 1884 for MQTT-SN clients and forwards to MQTT broker at port 1883.
A sensor node using MQTT-SN intermittently loses connection and fails to send data. Which is the most likely cause?
Verify the keep-alive interval doesn't exceed the gateway's timeout.
A keep-alive interval longer than the gateway's timeout causes the gateway to disconnect the sensor periodically, leading to intermittent connection loss and data send failures.
Order the steps in the correct sequence for a sensor node publishing data via MQTT-SN to a cloud MQTT broker.
Think about the natural flow from sensor to gateway to broker.
The sensor sends data to the gateway, which translates and forwards it to the broker, which then processes it.