Similar questions have been asked in the past but the devs deemed a solution to be in progress.
For an example project, say an rgb led is connected, and in the app the pwm values from 0-255 of each of the 3 colours can be selected through a function ( chooseColor(int red, int green, int blue) ), now once power is disconnected the values are erased and won’t be retrieved again until selected in the app by the user.
From research and my own ideas I have 4 potential solutions:
- Use the EEProm and store each of the values in memory
- Use an onboard buttonCell to sustain VBat power and keep values in SRAM?
- Store values on the particle cloud and fetch upon booting again.
- Store values in external database like firebase and use a webhook to fetch it.
Has there been any progress on a more straight forward solution? Thanks!
Edit: A cloud solution is preferable so if a user changes the values while the device is offline, the new stored values would be loaded.