NOVUS AUTOMATION
27/85
•
Dynamic Descriptive:
Send information only about the enabled variables, grouping each variable in a unitary manner.
o
Status:
{"n_channels":2,"n_alarms":4,"timestamp":43277.41043981,"battery":5.69,"ch_analog_1":22.800,"ch_analog_3":22.800,"alarm_02":1,"alar
m_03":0,"alarm_04":0,"alarm_05":0,buzzer_state":0}
o
Config:
{"n_channels":2,"n_alarms"4,"timestamp":43277.58234954,"frame_format":"descriptive_dynamic","enabled_analog_1":1,"enabled_analog_
3":1,"hash":"9401ACBDFFD105D653DAE5222470B47127455BBC","gmt":180,"tag_analog_1":"Analog1","tag_analog_3":"Analog3","unit_a
nalog_1":"Celsius","unit_analog_3":"Celsius","sp_alarm_02":35.0,"sp_alarm_03":0.00,"sp_alarm_04":22.3,"sp_alarm_05":0.00}
8.4.3
BOOLEAN FORMAT
A Boolean data consists of a data type that basically has two values: 0 or 1 or false or true, with 0 being false and 1 being true. Both the MQTT
protocol and
NXperience
software support that, according to the pattern chosen by the user, Boolean values are displayed in numeric format or in
string format.
The
NXperience Boolean Format
parameter (see
section of the
chapter) tells you how Boolean variables
will be displayed within the JSON frame, as you can see in the examples below.
•
Numeric
:
{"n_channels":4,"n_alarms":4,"timestamp":43277.45657407,"battery":5.69,"value_channels":[0.000,23.400,0.000,23.400],"alarms":[
0
,
1
,
0
,
0
],"bu
zzer_state":
0
}
•
String
:
{"n_channels":4,"n_alarms":4,"timestamp":43277.45446759,"battery":5.69,"value_channels":[0.000,23.300,0.000,23.300],"alarms":[
false
,
true
,
f
alse
,
false
],"buzzer_state":
false
}