Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

User Memory (file/non persistant) #8

Open
remisarrailh opened this issue May 10, 2017 · 0 comments
Open

User Memory (file/non persistant) #8

remisarrailh opened this issue May 10, 2017 · 0 comments
Assignees

Comments

@remisarrailh
Copy link
Contributor

I'm working on a basic json storage for settings.

  • 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant