Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How MQTT Publisher Send Publish message to MQTT Server in Contiki-NG?

MQTT Publisher Send Publish message to MQTT Server in Contiki-NG

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

mqtt-client.c
Step 2

Run the simulation

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.


mosquitto information mosquitto publisher MQTT broker for receiving control messages
Step 4

Mote Output

Mote Output