The interaction with server is done trough web sockets
To connect use this URL:
ws://127.0.0.1:4444/linbus
On connection server starts to send current height for each motor
{"name":"test1", "value":68}
{"name":"test2", "value":82}
Send next commands to perform actions
{"name":"test1", "command":"up"}
{"name":"test1", "command":"down"}
{"name":"test1", "command":"stop"}
To connect use this URL:
ws://127.0.0.1:4444/position
Send desired position(in cm) in this format:
{"name":"test1", "position":100}
To connect use this URL:
ws://127.0.0.1:4444/settings
Get settings:
{"name":"test1", "action":"get"}
Set settings:
{"name":"test1", "action":"set", "min":0, "max":40, "displayName":"Motor1"}
To connect use this URL:
ws://127.0.0.1:4444/memory
Get stored positions:
{"name":"test1", "action":"get"}
Set stored positions:
{"name":"test1", "action":"set", "positions":[100]}