Replies: 4 comments 4 replies
-
You could embed a javascript in the page. This script can then get the date and send a http request with the date and time to the ESP32, preferably as Date.now() timestamp. Some timestamp arithmetic will be necessary on the ESP32. AFAIK, ntptime cannot access internet when in AP mode. Or you can activate a wifi hotspot on the iPhone and have the ESP32 connect to it in station mode and use ntptime to sync date and time. |
Beta Was this translation helpful? Give feedback.
-
I use microdot on esp32c3 and rp2 as web server. |
Beta Was this translation helpful? Give feedback.
-
Ah I forgot one thing esp32 boards can be twice in AP mode and in STA mode and that's very usefull ☺ |
Beta Was this translation helpful? Give feedback.
-
I have a process which run microdot and other one which check sensors, he update little lists that are being graph in html. But he check also determined lvl and if reached, active STA mode and send me an email. That's very usefull. I will test soon with lora (if no internet co. on server point). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
display an HTML page on an Iphone from an ESP Server via sockets, it works well and there are many tutorials.
My question is : can data be sent back from Iphone to ESP.
My goal is as follows : the ESP is a server in AP mode, lost at the bottom of my garden. When I connect the power to it, it loses the date and I would like to set the time from the Iphone.
Is it 'just' possible?
Beta Was this translation helpful? Give feedback.
All reactions