Create a Data Source for a Thing in AnythingDB
-
Open the Data Sources menu under Stream Processing.
Figure 1.
- To set this Data source to be only visible to you and to no one else in your space, select the folder named for your user.
-
Select + New Data Source.
- Enter a name for the new data source and click Create.
- Select the Connector dropdown.
-
Select MQTT in the Input section of the dropdown
list.
Figure 2.Note: You can also choose to send Data to a device from the Stream Processing application, but this is done through the Output version of an MQTT data source.
-
Update the broker URL to be
tcp://mqtt.swx.altairone.com:1883
Figure 3. -
Populate the Topic field with the MQTT topic of the AnythingDB
Thing from which you want to process data. This should be in
the format
set/<space>/collections/<collection>/things/<thing_id>/data
- Populate the User Id. This can be found on the Security tab of the Details page of the Thing you are trying to connect to.
- Populate the Password. Likewise, this can be found on the Security tab of the Details page of the Thing you are trying to connect to. You can either set your own password or autogenerate one.
-
Select Generate Columns.
Note: Your device must be sending Data to generate columns. If Stream Processing does not detect any messages within the limit, it will timeout.
- Select Save.