Developer Webcast-Session 4-Connecting to an External Entity

Introduction
In this session, we will have a Python program connect to our temperatureMonitor system as an external MQTT client. This MQTT client will have the following characteristics:
- It will authenticate as a device.
- It will subscribe to one topic on which a request can be sent.
- It will publish to one topic. The data published will be raw or smoothed (averaged) temperature data depending on what request was received.
- The temperature data will be displayed in the existing Scatter Plot widget.
Pre-requisites (optional):
Completed Session 3 system or have the .zip file of the system accessible.Have Python 3.6 or newer installed and ready to use. Python can be installed from here.Have completed at least a Hello World Python exercise.Ensure you know how to change directories and run a Python3 program from your terminal (e.g. Bash on Linux, Cmd or PowerShell on Windows, Terminal on MacOS). Be aware that many Operating Systems come pre-installed with Python2, so make sure you're able to run code using Python 3.6.x.Have an editor available to edit and save changes to the Python code. A simple text editor is sufficient, but something like VSCode is ideal.Install the ClearBlade Python SDK (not from source) as indicated here.Ensure that port 1884 is not blocked by your firewall.
Code Snippets (copy & paste):
mqttClientUserDevice.pyscatterPlotWidgetParser.js
Attendance Info:
Date: 2pm Central Time, August 13, 2020YouTube Link: View session

.webp)
ClearBlade Monthly Newsletter
News, trends, and true stories of IoT, Edge AI and connected Digital Twins in action.





