madnerdorg / libreconnect

Plug an arduino to connect it as a websocket
http://madnerd.org
MIT License
5 stars 0 forks source link

User Memory (file/non persistant) #8

Open maditnerd opened 7 years ago

maditnerd commented 7 years ago

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.