I am using a Photon (the WiFi version and Cellular version) to log temperature/humidity (using a DHT11 sensor). What I am having trouble with - I am sending data to Particle cloud - working fine. I have also linked to a Ubidots account for front-end/UI view of the points collected. Although Ubidots is slow to respond sometimes…everything seems to work fine. What I need to know how to do, but am stuck at - what if I have a battery backup for my Photon (I do) and the power is on, the device still collects data, but the internet goes down.
Since I am logging data, I would want those missing points. Anyone know of any way to do this? Basically, here is the desired outcome:
- The Photon streams collected sensor data to the cloud
- There is a break in connection - either the power or internet…so the Photon continues to collect information.
- Once re-connected to the cloud, there is a check to see what data is missing from the time of the last collected data reading to the current time.
- The Photon pushes those missing packets to the cloud in the respected place and times.
As a side note, I bought the SD board, but have yet to figure that out (library/install) but have the hardware/wiring connected correctly. I am just confused on the library side of things…
I believe there is enough space on the Photon on-board storage for at least 24 hours of temp/humidity readings
What would I need to do to make this happen? Please advise - any assistance is GREATLY appreciated…thank you fellow makers