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

Step by Step Procedure to Subscribe Messages from MQTT Server in Contiki-NG

Subscribe the messages from MQTT server in Contiki-NG

Contiki-NG Simulation to Subscribe Messages from MQTT Server

Description:

   The Subscribed message is simple,It contains a unique packet identifier and a list of subscriptions.

   To subscriber received a publish message based on a topics of interest.

   Then the Subscriber sends Subscribed message to the MQTT broker.

Step 1

Open a Source file in the following location. >> contiki-ng/examples/mqtt-client/mqtt-client.c Code : mqtt-client.c


Open a Source file in the following location
mqtt-client.c
Step 2

Run the Simulation


 Run the Simulation
Step 3

MQTT broker window

MQTT broker window

MQTT Subscriber window

MQTT Subscriber window
Step 4

Mote Output


Mote Output
Execute the mqtt server and get the output