It could be saved as a non persistant variable who is deleted when usb is unplugged.
A json files on the connector device
Websocket Commands
@load --> Dump json memory as @[JSON OBJECT]
@save:[JSON OBJECT] --> Save json memory into connector.
Json can be saved as a variable or a file (named after the websocket port for ex: 42001.json)
With this you can
Save state of electronics devices from a web interface , and reload them.
Build client that save the state and makes it available to web interface.
Replicate state between websocket.
It would be best to be able to save specific key instead of saving everything each times but that would require to verify user input more seriously.
The use of the character @ to specify the message doesn't come from an arduino, will probably become an issue as some point.
I'm working on a basic json storage for settings.
Websocket Commands @load --> Dump json memory as @[JSON OBJECT] @save:[JSON OBJECT] --> Save json memory into connector.
Json can be saved as a variable or a file (named after the websocket port for ex: 42001.json)
With this you can
It would be best to be able to save specific key instead of saving everything each times but that would require to verify user input more seriously. The use of the character @ to specify the message doesn't come from an arduino, will probably become an issue as some point.