Sensors & Physical Sensors
Add to parent device: POST /sensors/{id}/device
This method adds a sensor to a device. If the device does not exists then it will be created. Either a device_id or type and uuid combination is needed. The type of the sensor will then be automatically be set to 1.
URL | https://api.sense-os.nl/sensors/{id}/device |
Method | POST |
Need Auth | True |
Request Headers
Name | Default | Type | Style | Required |
---|---|---|---|---|
Accept | * | xsd:string | header | True |
Request Parameters
Name | Description | Type |
---|
Request Body
{ "device": { "id": "1", "type": "smartphone", "uuid": "50c7eaed792b01234" } }
Read parent device: GET /sensors/{id}/device
This method returns the details of the device to witch the sensor is connected.
URL | https://api.sense-os.nl/sensors/{id}/device |
Method | GET |
Need Auth | True |
Request Headers
Name | Default | Type | Style | Required |
---|---|---|---|---|
Accept | * | xsd:string | header | True |
Request Parameters
Name | Description | Type |
---|
Remove from device: DELETE /sensors/{id}/device/{device_id}
This method will remove a sensor from a device. The type of the device will then automatically be set to 0.
URL | https://api.sense-os.nl/sensors/{id}/device/{device_id} |
Method | DELETE |
Need Auth | True |
Request Headers
Name | Default | Type | Style | Required |
---|---|---|---|---|
Accept | * | xsd:string | header | True |
Request Parameters
Name | Description | Type |
---|