Table des Matières

Publicité

o État :
{"n_channels":4,"n_alarms":10,"timestamp":43277.40924769,"battery":5.69,"ch_dig":0.000,"ch_analog_1":22.600,"ch_analog_2":0.000,"ch
_analog_3":22.600,"alarm_01":0,"alarm_02":1,"alarm_03":0,"alarm_04":0,"alarm_05":0,"alarm_06":0,"alarm_07":0,"alarm_08":0,"alarm_09"
:0,"alarm_10":0",buzzer_state":0}
o Config :
{"n_channels":4,"n_alarms":10,"timestamp":43277.57784722,"frame_format":"descriptive_static","enabled_dig":0,"enabled_analog_1":1,"e
nabled_analog_2":0,"enabled_analog_3":1,"hash":"9401ACBDFFD105D653DAE5222470B47127455BBC","gmt":-
180,"tag_dig":"","tag_analog_1":"Analog1","tag_analog_2":"","tag_analog_3":"Analog3","unit_dig":"","unit_analog_1":"Celsius","unit_analog
_2":"","unit_analog_3":"Celsius","sp_alarm_01":0.0,"sp_alarm_02":35.0,"sp_alarm_03":0.00,"sp_alarm_04":22.3,"sp_alarm_05":0.00,"sp_al
arm_06":0.0,"sp_alarm_07":0.0,"sp_alarm_08":0.0,"sp_alarm_09":0.0,"sp_alarm_10":0.0}
Descriptif dynamique : envoie des informations uniquement sur les variables activées, en répertoriant chaque variable en mode unitaire.
o État :
{"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,"alarm_0
3":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_analog_1":"Celsius","unit_analog_3":"Celsius","sp_alarm_02":35.0,"sp_alarm_0
3":0.00,"sp_alarm_04":22.3,"sp_alarm_05":0.00}
8.4.3 FORMAT BOOLÉENNE
Une donnée booléenne est un type de donnée possédant, essentiellement, deux valeurs : 0 ou 1, ou vrai et faux, 0 étant le faux et 1 étant le vrai.
Le protocole MQTT aussi bien que le logiciel NXperience acceptent que, selon le critère défini par l'utilisateur, les valeurs booléennes soient
présentées en format numérique ou en format de chaîne de caractères (string).
Le paramètre Format Booléenne du NXperience (voir la section
variables booléennes seront présentées dans la trame JSON, selon les exemples ci-dessous.
Numérique :
{"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}
Chaîne de caractères :
{"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}
NOVUS AUTOMATION
Protocole MQTT
du chapitre
Logiciel de
configuration) indique comment les
25/79

Publicité

Table des Matières
loading

Table des Matières