#5, First Floor, 4th Street , Dr. Subbarayan Nagar, Kodambakkam, Chennai-600 024 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?

Description

Sending of a message from client is known as publisher.

Publisher can send the publish message as soon as it connects to a broker.

Each publish message contains a topic that the broker can use to forward the message to interested clients.Typically each message has a payload which 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.





Step 4

Mote Output