How the Publisher Send Message to the Server in MQTT Contiki Cooja?
Share
Contiki cooja steps for the publisher to send message to the server in MQTT
Description: Sender of the messages is called publisher in pub/sub pattern. Publish the topics periodically and also know about how to send the publish message to server in MQTT contiki cooja simulator.
Source code
Step 1: Open a file at location:contiki/ mqtt-sn-contiki/main_core.c
Define topics like this,
static char *topics_mqtt[] = {“/topic_1”, “/topic_2”, “/topic_3″”/topic_4”, “/topic_5”, “/topic_6”};