ANALOG CHANNELS
L'exemple de cette section ne présente que le canal analogique 1, appelé ch1. L'autre canal (ch2) suit le même modèle de données.
REQUEST ANALOG CHANNELS
{
"timestamp":1585819219,
"desired": {
"ch1" : {
"enable":1,
"sensor_type":1,
"range_min":-10,
"range_max":2020,
"decimal_point":2
}
}
}
ETHERNET
REQUEST ETHERNET
{
"timestamp":1585819219,
"desired": {
"eth" : {
"enable_dhcp":0,
"addr":[10, 167, 2, 3],
"mask":[255,255, 255, 0],
"gateway":[255, 255, 255, 0],
"ipv4dns":[8,
}
}
}
NOVUS AUTOMATION
{
}
{
8,
8,
8]
}
RESPONSE ANALOG CHANNELS
"pid": 51387408,
"device_id": "device0",
"timestamp":1585819219,
"reported": {
"ch1" : {
"error": 0,
"enable":1,
"sensor_type":1,
"range_min":-10,
"range_max":2020,
"decimal_point":2
}
}
RESPONSE ETHERNET
"pid": 51387408,
"device_id": "device0",
"timestamp":1585819219,
"reported": {
"eth" : {
"error": 0,
"enable_dhcp":0,
"addr":[10, 167, 2, 3],
"mask":[255,255, 255, 0],
"gateway":[255, 255, 255, 0],
"ipv4dns":[8, 8, 8, 8]
}
}
58/102