Table of Contents

API

Device settings

Get settings:

GET https://localhost:5000/settings

response:

[
   {
      "name":"test",
      "minHeight":10,
      "maxHeight":100,
      "protocol":1
   },
   {
      "name":"test2",
      "minHeight":10,
      "maxHeight":100,
      "protocol":1
   }
]

Set settings:

POST https://localhost:5000/settings
[
   {
      "name":"test",
      "minHeight":10,
      "maxHeight":100,
      "protocol":1
   },
   {
      "name":"test2",
      "minHeight":10,
      "maxHeight":100,
      "protocol":1
   }
]

No responce

Note:protocol should be eather 0 or 1. This is depending on which controller we are using(old or new).

Device position

Get all devices:

GET https://localhost:5000/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:5000/device
{
      "name":"test",
      "value":10,
      "storedPositions":[
         
      ]
}

No responce