SmartSwarm 300 Series
:
94
10.3.1 PAYLOAD EXAMPLES
10.3.1.1 THE DEFAULT PAYLOAD
With this rule, if the enriched value of Register 1 goes above 100 the payload for register 1 will be published.
The published payload data will be in .json format.
For this HR example, the actual enriched register value within the data payload will be in
model.state.HR.0.num_value
(see the published JSON schema below).
A sample of payload published from this rule might look like this:
{
"model": {
"state": {
"HR": [{
"value_from": "RESPONSE",
"published_on": "HI\/ON",
"name": "HR_1",
"min": 0,
"address_offset": 0,
"max": 100,
"zero_value": 0,
"
num_value
": 101.000000,
"scaling": 1,
"alias": "Water Temperature",
"state": "VALIDATED",
"var_pct": 16.000000,
"at": "2016-07-14T19:29:22.089Z",
"address": 1,
"units": "Deg C",
"new_value": true,
"new_read": true
}]
},
"meta": {
"description": "Slave_1",
"value_byte_order": "SNo",
"name": "Power_Meter",
"installation_date": "14\/07\/2016",
"location": "Test_Rack",
"address": {
"DEVID": "6500004",
"PORTID": 1,
"SLAVEID": 10,
"SWMID": 0
},
"manufacturer": "NA"