Blog

Developer Webcast-Session 4-Connecting to an External Entity

Aaron Allsbrook • August 10, 2020

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:

  1. It will authenticate as a device.
  2. It will subscribe to one topic on which a request can be sent.
  3. It will publish to one topic. The data published will be raw or smoothed (averaged) temperature data depending on what request was received.
  4. 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

ClearBlade Monthly Newsletter

News, trends, and true stories of IoT, Edge AI and connected Digital Twins in action.

Subscribe
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Related Blogs.

BLOG

Your 2026 Edge Strategy Starts Now

Read article
BLOG

ClearBlade + Google Cloud: Collaborative Support Now Available

Read article
BLOG

ClearBlade 2025.3.0 Ghost Product Release

Read article
BLOG
3 min

ClearBlade’s Integration with Google Cloud BigQuery

BLOG
3 min

ClearBlade’s Integration with Google Cloud BigQuery

BLOG
3 min

ClearBlade’s Integration with Google Cloud BigQuery

View all resources