How MQTT Publisher Send Publish message to MQTT Server in Contiki-NG?
Share
Contiki-NG Steps for MQTT Publisher Sending Publish Message to MQTT Server
Description: An MQTT client can publish messages as soon as it connects to a broker. MQTT utilizes topic-based filtering of the messages on the broker. Each message must contain a topic that the broker can use to forward the message to interested clients. Typically, each message has a payload that contains the data to transmit in byte format.
Step 1
Open a source file in the following location >> contiki-ng/examples/mqtt-client/mqtt-client.c Code : mqtt-client.c
Step 2
Run the simulation
Step 3
After connecting border router to server use three terminal window for mosquitto publisher,subscriber and MQTT broker for receiving control messages.