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?

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


MQTT Publisher Send Publish message to MQTT Server
Step 2

Run the simulation


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

After connecting border router to server use three terminal window for mosquitto publisher,subscriber and MQTT broker for receiving control messages.


connecting border router to server use three terminal window for mosquitto publisher

MQTT broker for receiving control messages
Step 4

Mote Output


subscriber and MQTT broker for receiving control messages