remote control: add /STATE/OPEN and /STATE/SAVE commands; ignore unsaved changes when loading a session with /SESSION/OPEN

This commit is contained in:
bordun 2020-10-21 10:31:24 +02:00
parent 9b21cd4865
commit 69831e9719
5 changed files with 45 additions and 3 deletions

View file

@ -115,6 +115,11 @@ Replies `/GET address preArg1 preArg2 ... value`
Same as `/GET` but uses the widget's address instead of `/GET` to reply.
----
#### `/NOTIFY message`
Sends a notification message to the client.
----
@ -172,6 +177,18 @@ Reload saved state from the temporary slot.
----
#### `/STATE/OPEN path.state`
Open state file `path.state`.
----
#### `/STATE/SAVE path.state`
Save state session to `path.state`. If `path.state` is omitted, current session's path is used.
----
#### `/SESSION/OPEN path.json`
Open session file `path.json`.