This is an old revision of the document!
API
Device settings
Get settings:
GET https://localhost:44399/settings
response:
[
{
"name":"test",
"minHeight":10,
"maxHeight":100,
"protocol":1
},
{
"name":"test2",
"minHeight":10,
"maxHeight":100,
"protocol":1
}
]
Set settings:
POST https://localhost:44399/settings
[
{
"name":"test",
"minHeight":10,
"maxHeight":100,
"protocol":1
},
{
"name":"test2",
"minHeight":10,
"maxHeight":100,
"protocol":1
}
]
No responce
Device position
Get all devices:
GET https://localhost:44399/device
response:
[
{
"name":"test",
"value":10,
"min":10,
"max":100,
"storedPositions":[
]
},
{
"name":"test2",
"value":10,
"min":10,
"max":100,
"storedPositions":[
]
}
]
Set device height:
POST https://localhost:44399/settings