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 to Subscribe the messages from MQTT server in Contiki-NG?

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


How to Subscribe the messages from MQTT server in Contiki-NG
How to Subscribe the messages from MQTT server in Contiki-NG
Step 2

Run the Simulation


Open a Source file in the following location.
Step 3

MQTT broker window

MQTT broker window

MQTT Subscriber window

MQTT Subscriber window

MQTT Publisher window

MQTT Publisher window

Step 4

Mote Output


MQTT broker window
Mote Output