Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 918 Bytes

File metadata and controls

16 lines (12 loc) · 918 Bytes

Mosquitto client samples

This folder contains two samples commands to publish messages to topic as well as subscribe to custom topics and receive message using mosquitto

Setup

Mosquito needs to be installed on the device. Mosquitto can be downloaded and installed from its official site

Run

You can get new SAS token for your devices using DeviceOperations project located on this repo. Then you can perform following actions using Mosquitto. Sample for each action can be found in mosquito_publish and mosquitto_subscribe respectively

Action Documentation
Publish message to a topic mosquitto_pub
Subscribe to a topic mosquitto_sub

Documentation

Mosquitto documentation can be accessed on following URL: link