This is an old revision of the document!


Linbus multicontroller commands

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

  • Move up
{"name":"test1", "command":"up"}
  • Move down
{"name":"test1", "command":"down"}
  • Stop
{"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}

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]}
  • linbus/multicontroller_websockets.1615377235.txt.gz
  • Last modified: 2021/03/10 11:53
  • by superuser