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: [
        [29593],
        [29553]
    ]
}

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

  • last recorded temperature in centi-Kelvin – example response;
    • sensor a = 295.93K (22.78°C, 73.00°F)
    • sensor b = 295.53K (22.38°C, 72.28°F)

Leave a Reply

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