Dear Community.
Lately i have been searching and asking a lot about local stored variables, i have read many posts about it and got some nice answer from others here. I just want to collect my findings since a lot of people have asked the same.
I cant help you with programming and settings but i can give a hint on how its done.
Can you store values locally on your Photon without the cloud?
Answer: Yes you can, there are some libraries that can help you do so.
- Webserver library - Creates a webserver on the photon that can call values and store them in a file.
- mDNS library - So you can call the photon from a browser with i.e. http://myphoton.local instead of the IP
- SDcard library - EEPROM on the Photon allows for 2K (2048 byte) of wear-leveled non-volatile storage at your direct disposition. so you might need a SD card if you want to store bigger files.
Use the webide and browse for the librarys, when you have opened them you can see in the different tabs some examples, some advanced and some not so much, depends on your skill. There are not any tutorials on how to use them in the photon today but when time exist some people have said they will create one.
it has been done
You can also include the librarys from the webide just by clicking “include in APP” on left side.
Many people have asked about a way to include the particle app way of handeling WIFI,
There is one. SoftAP is a library, tool what now to call it to handle the WIFI connection on a Photon.
It can be used for a webpage and/or a mobile app. There have been a lot of activity about the SoftAP so we might see it included as native in the future.
Download. working SoftAP
Customize the SoftAP
Thread about the SoftAPP
This is some question that have bugged me a while so i thought i share them here in one post for other that have been looking at the same, hope it helps other people that looking for something similar and don’t know where to start.
BR
Dimi