I’m using the ESP32 Dev Board with an iPhone and connecting with Bluetooth because I have an unreliable internet connection, and want others to be able to use my app/project without having to code in their network connections.
I’m trying to turn an LED on and off based on the time, but having trouble figuring out a good method of doing this.
I tried the simple timer widget, and it returns a 1 or 0 at the correct time based on my phone’s time. However, I’m under the impression that because I am using bluetooth and not connected to the server, I cannot do anything with this value. Is that correct?
It seems like the next strategy is to somehow set the time manually in the app, and then use millis() to keep the time. Before I try to figure this out, I wanted to ask if there’s a way to get the time in the app from my phone instead of the server/manual entry?
If not, do you have a recommended approach for achieving my goal?
My interpretation is that the RTC requires a connection to the server which means I have to go through WiFi/ethernet/internet, which bluetooth does not. I’m not sure if you mean something different when you say “external”?