- Read about CeleryScript and our use of MQTT first. This is important stuff!
- Install Paho-MQTT
- Try the examples below, preferably in order.
IMPORTANT NOTE: If you do not generate a token via token_generation_example.py
, none of these examples will work.
token_generation_example.py
- Learn how to create an API token. You need this to login to the MQTT server.subscribe_example.py
- Learn how to listen to incoming data. Running this script is a great way to observe real world commands used by the Web App.publish_example.py
- Learn how to send CeleryScript RPC nodes to the device.