/
Admin normalizer data stream

Admin normalizer data stream

Overview

Data easily streams into Intelligent Assets using MQTT. To add a new datastream that is properly formatted, connect it to the Intelligent Assets MQTT broker and publish it to the desired topics, sending properly formatted JSON structures.

Prerequisites

Before normalized messages can be consumed within Intelligent Assets, the following are required:

  1. An Asset Type defining the attributes for any assets that will created or updated by the incoming data.

  2. An MQTT Client to publish this data and should exist either within the IoT Enterprise instance (e.g.: Code Service, Adapter, etc.) or as an authorized Device

Topics examples

Default normalizer topic: _monitor/asset/default/data

JSON payload examples

 

var assetDataObject =     { “id”: “refrigerator123”, //required; the asset’s unique ID to update “type”: “Refrigerator”, //required; the asset type which is previously defined in the application with custom data attributes “last_updated”: “<ISOString>”, //Optional ISO timestamp. If none is provided, we will apply one as we process the message “latitude”: <valid_latitide>, //optional “longitude”: <valid_longitude>, //optional “custom_data”: { // nested objects not allowed, only primitive JS types: string, number, boolean, timestamp string allowed “Temperature”: 38, “Door Status”: false, “Filter Status”: "Replace Soon" }, "group_ids": ["group1", "group2"] //assigns the asset to group(s) in the Intelligent Assets application. Required if the asset does not already exist }

Related content