Local API

Get Measurement Data (/getdata)

The getdata local API command provides a method for the user to retrieve the measurement data directly from the device (at the time of the request).

Request (HTTP get) syntax must be in the form:

http://192.168.1.1/getdata

NOTE: If the device is connected to a network, use the IP address assigned to it on the network and post fix it with port 8080 – i.e. http://10.10.1.234:8080/getdata. If you are connected directly to the device’s network, use the IP address 192.168.1.1

Response will be in JSON formatted string in the form:

{
    data: [ 
        [914, 12183, 53, 5]
    ]
} 

NOTE: The data object in the response contains a multi-dimensional array of N-sensors by:

  • power factor (signed milli-Units) – example response above = 0.914
  • voltage (unsigned centi-Volts) – example response above = 121.83 V
  • current (unsigned milli-Amps) – example response above = 0.053 A
  • power (signed Watts) – example response above = 5 W

Leave a Reply

Your email address will not be published. Required fields are marked *