Hi, I am new to the coding and programming field and in need of some advice/thoughts on my project. I am currently working with a Carbon Dioxide Monitoring Device with a MH-Z19 Co2 sensor connected to a WeMos d1 mini esp8266 for online data monitoring in Arduino (IoT) and I also added a SSD1306 I2C display for my device. To make it portable/convenient, is there a way to run the code and make the device display carbon dioxide levels on the ssd1306 even if the WiFi is not available?
Yes.
Sure – the state of the connection to the cloud does not block the loop of your program. You can write your program normally so that it reads from sensor, updates a variable, and then updates the display. When cloud connection is up, that variable will also be synced remotely; when it's down, no remote update will happen but the variable can be used locally with no limitations as it is by all means a normal variable in your sketch.
1 Like
Thank you very much
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.