
34
When the JSON API protocol is enabled, other M2M protocols are disabled. After clicking Save
changes, you will be asked to confirm the deactivation of the other protocols.
Click Confirm to confirm the action or Cancel to return to the JSON API protocol configuration.
For an example of reading the output state using JSON API, click the “Test JSON API: Open JSON
API file (read password required)” link.
After entering the username and password, you will receive a json file with the NETIO device
current state.
URL for downloading/uploading the netio.json file: http://<NETIO Device IP>/netio.json
e.g. http://192.168.101.125/netio.json
Example of the netio.json file
{
"Agent":{"Model":"4PZ","DeviceName":"PowerDIN-
EE","MAC":"24:A4:2C:38:E9:EE","SerialNumber":"24A42C38E9EE","JSONVer
":"2.3","Time":"2020-10-
19T16:58:40+01:00","Uptime":11064,"Version":"2.5.5","OemID":400,"Ven
dorID":0,"NumOutputs":4,"NumInputs":2},
"GlobalMeasure":{"Voltage":238,"TotalCurrent":82,"TotalLoad":12,"Tot
alEnergy":36,"OverallPowerFactor":0.59,"Frequency":50.05,"Phase":-
37.28,"EnergyStart":"2020-06-30T17:04:48+01:00"},
"Outputs":[
{"ID":1,"Name":"Power output
1","State":1,"Action":6,"Delay":2020,"Current":82,"PowerFactor":0.59
,"Phase":-37.28,"Energy":8,"ReverseEnergy":0,"Load":12},
{"ID":2,"Name":"Power output
2","State":0,"Action":6,"Delay":2020,"Current":0,"PowerFactor":1.00,
"Phase":0.00,"Energy":27,"ReverseEnergy":0,"Load":0},
{"ID":3,"Name":"Free Contact 3","State":0,"Action":6,"Delay":2020},
{"ID":4,"Name":"Free Contact 4","State":1,"Action":6,"Delay":2020}
],
"Inputs":[
{"ID":1,"Name":"Input 1","State":1,"S0Counter":28},