121 WISE-4000 User Manual
Appendix B REST for WISE-4000 Series
PUT
Single/Multiple Channel Request:
PUT /di_value/slot_index
Single Channel Request:
PUT /di_value/slot_index/ch_num
[Example]
Request: PUT /di_value/slot_0
Content-type: application/json
{
"DIVal": [
{
"Ch":0,
"Md":0,
"Stat":0,
"Val":0,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
},
{
"Ch":1,
"Md":0,
"Stat":0,
"Val":0,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
},
{
"Ch":2,
"Md":1,
"Stat":0,
"Val":3378,
"Cnting":0,
"ClrCnt":1,
"OvLch": 0
},
{
"Ch":3,
"Md":3,
"Stat":0,
"Val":0,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
}
]
}
Response: 200 OK
Request: PUT /di_value/slot_0/ch_2
Content-type: application/json
{
"Ch":2,
"Md":1,
"Stat":0,
"Val":3378,
"Cnting":0,
"ClrCnt":1,
"OvLch": 0
}
Response: 200 OK