This tutorial will guide you through the process of connecting a device (a Lamp) to SmartWorks and sending data to store it and implement simple business logic.
This tutorial will guide you through the process of connecting your ESP8266 and DHT10 sensor to SmartWorks to control the board LED light and monitor the surrounding humidity.
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.
SmartWorksEdgeOps is a set of tools for building, maintaining and continuously improving code in resource constrained devices at the
edge of smart connected ecosystems.
This tutorial will guide you through the process of connecting a device (a Lamp) to SmartWorks and sending data to store it and implement simple business logic.
Inside Categories, Things represent the entities in the IoT
ecosystem. They store information about real world objects as well as information
about concepts.
Follow the instructions below to create a new Thing:
Figure 1.
Web of Things (WoT) describes a set of standards by the World Wide Web
Consortium (W3C) for the interoperability of different IoT platforms and application
domains. One of the key components specified by the WoT is the Thing
Description. A Thing Description describes a virtual or a physical device
(Thing) expressed in JSON formatting.
Add the following Thing description provided by the W3C:
{
"@context": "https://www.w3.org/2019/wot/td/v1",
"@type" : "ThingTemplate",
"title": "Lamp Thing Description Template",
"description" : "Lamp Thing Description Template",
"properties": {
"state": {
"description" : "current state of the lamp on|off",
"type": "string",
"readOnly": true
}
},
"actions": {
"toggle": {
"description" : "Turn the lamp on or off"
}
},
"events": {
"overheating": {
"description" : "Lamp reaches a critical temperature",
"data": {"type": "string"}
}
}
}