ICP DAS WISE User Manual
http://wise.icpdas.com
317
Appendix VII
:
The JSON format for the communication with IoT
Platform
WISE supports the functions to publish the JSON format messages to Amazon Web
Services, Microsoft Azure and IBM Bluemix IoT Cloud platforms, and also
subscribe/receive the JSON format messages from IoT Cloud platform to change the
value of the output channel of I/O modules that are connected to WISE. The following
lists the detailed information of JSON format message with WISE.
Message format
{
"msg_type"
:
"SYSTEM_INFORMATION
_UPDATE"
It means the update message
of the System information
WISE sent.
"
CHANNEL_UPDATE
"
The "CHANNEL_UPDATE"
type of message indicates the
message published by WISE
to inform IoT Cloud platform
the update of the I/O channel
status.
"
CHANNEL_OUTPUT
"
If WISE receives the message
in the type of
"CHANNEL_OUTPUT",
then WISE will perform the
task to change the value of
the output channel.
"info_item"
:
Items for the system information. If the msg_type field is
SYSTEM_INFORMATION_UPDATE, then this field will exist.
Following is for the describptions of the codes.
"DATE_YEAR"
Date(Year)
"DATE_MONTH"
Date(Month)
"DATE_DAY"
Date(Day)
"TIME_HOUR"
Date(Hour)
"TIME_MINUTE"
Date(Minute)
"TIME_SECOND"
Date(Second)
"UNIX_TIMESTAMP"
Timestamp