This tutorial will guide you through the process of connecting your computer to the SmartWorks IoT platform and sending
computer resources data such as CPU state, disk usage, latitude, longitude, memory, and memory available to the platform.
You will also learn how to create Actions based on Event Triggers.
This tutorial will guide you through the process of connecting your ESP8266 and DHT10 sensor to the SmartWorks IoT
to control the board LED light and monitor the surrounding humidity.
This tutorial will guide you through the process of connecting a device (a Lamp) to the SmartWorks IoT platform and
sending data to store it and implement simple business logic.
Stream Processing is a method of tracking and analyzing streams of information of an event, and eventually obtaining useful structured
conclusions out of that raw information.
SmartWorks IoTEdgeOps is a set of tools for building, maintaining and continuously improving code in resource constrained devices at the
edge of smart product ecosystems.
This tutorial will guide you through the process of connecting your computer to the SmartWorks IoT platform and sending
computer resources data such as CPU state, disk usage, latitude, longitude, memory, and memory available to the platform.
You will also learn how to create Actions based on Event Triggers.
You need to create a connection between SmartWorks IoT and the object to send the
data. This connection can be created from an API. The platform offers access through
a REST API to all the resources. It's protected by Oauth protocol allowing you to
define fine grained access control according to your use case.
Data must be sent via HTTP or MQTT to SmartWorks IoT. For this project we are
using MQTT connection.
MQTT Is the standard for IoT messaging. It allows for messaging between device to
cloud and cloud to device. More information on MQTT can be found here:
Client connections are always handled by a MQTT broker, which is responsible for
receiving and filtering the messages, determining who is subscribed to each
message and sending them. To configure the MQTT broker connection, the Host,
Username and Password are the required parameters.
Follow the steps below to connect your device via MQTT.
Open the connect_your_first_device_guide file in your
existing code editor. If you need a code editor, you can download one here. If you don't want to install a code editor and/or Python, you
can access access Jupyter online. Follow the steps here. See Connect Your First Device for
more information.
Follow the first step in the file to import the libraries. Click the arrow icon
next to the line import modules.smartworks_sdk as swx to
execute the code to import the files.
Note: If you are using Jupyter online, you will need to restart Kernell.
Complete the steps under Computer Metrics.
Connect your device via HTTP:
In SWX Computer Training.ipynb, locate and follow
the steps for an HTTP connection.
Execute the code and add the required information as instructed.
Required: In AnythingDB, click your Thing and get the Thing ID and Secret ID to
authenticate and authorize your entity.
Check the data received in the Raw History panel as shown below.
Connect a Device via MQTT:
MQTT Is the standard for IoT messaging. It allows for messaging between device
to cloud and cloud to device. Read More information on MQTT: https://mqtt.org/
Client connections are always handled by a MQTT
broker, which is responsible for receiving and filtering the messages,
determining who is subscribed to each message and sending them. To configure
the MQTT broker connection; Host, Username and Password are the required
parameters.
In SWX Computer Training.ipynb, locate and follow
the steps for a MQTT broker connection.
Get your username and password by turning ON the autogenerate feature
for the platform to autogenerate the username and password .
Note: You can also create your own username and password, if
desired.
Click Save.
Execute the code as instructed in the SWX Computer Training.ipynb
file
Check the data received in the Raw History panel as shown below.