Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Besides the REST interface, the PTL software also exposes a WebSocket interface, that can be used for callbacks from the systemTo send back events to the connecting client, we use WebSockets. The client can make a WebSocket connection on the URL ws://<<ip address>>/ws. On this connection only events can be received. Sending information is done using the REST API.

Message

Content

Remarks

CONFIRM

Code Block
languagejson
{
  "plank":«plank»,
  "section":«section»,
  "value":"«value»",
  "side":"«side»",
  "tagid":"«tagid»",
  "controller":«controllerid»
}

This message is sent when an active tag’s button is pushed.

When the cabinet’s mode is tag, the tagid and controller fields are valid.

When in section mode, the fields plank, section and side are valid.

...