List of Topics:
Research Breakthrough Possible @S-Logix pro@slogix.in

Office Address

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