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: [
        [24284],
        [0]
    ]
}

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

  • Cumulative pulse count since last device reset

Leave a Reply

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