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.
Once the Function is running, it's ready to be invoked.
To invoke a Function, create a Trigger by clicking Functions > Trigger.
Note: A Trigger is a component that is capable of invoking serverless Functions
from an event source. Trigger works as a listener to a particular
endpoint.
Click Add.
In the New Event Trigger panel, enter the Trigger description and Type.
Under Config, enter the host as
mqtt.swx.altairone.com.
Enter your MQTT username and password same as in Interface tab inside the Thing
in AnythingDB or Autogenerate it.
Add Topic as follows:
status/Your space name/categories/Your categories name/things/Your thing ID/properties/led_blink
Click Create Trigger.
To test the Trigger, update led_blink property to "on".
It will update the blink_count property. Also, the Invocation count will
change to 1.
This Trigger points to the property led_blink, of the thing
“Your Thing ID” that is in the Category “Your Categories name” inside the space “Your space name”. Figure 1.