Usage
The example commands below use the command line version of httpie. For more information on the specific endpoints, please take a look at the documentation which should be available under the endpoint /docs, e.g. localhost:33215/docs, after you installed and setup ICOapi.
Get List of Available Sensor Devices
http 'http://localhost:33215/api/v1/sth'
Example output:
[
{
"device_number": 0,
"mac_address": "08-6B-D7-01-DE-81",
"name": "Test-STH",
"rssi": -44
}
]
Connect to Available Sensor Device
http PUT 'http://localhost:33215/api/v1/sth/connect' mac_address='08-6B-D7-01-DE-81'
Check if the STU is Connected to the Sensor Device
http POST 'http://localhost:33215/api/v1/stu/connected' name='STU 1'
Disconnect from Sensor Device
http PUT 'http://localhost:33215/api/v1/sth/disconnect'