ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
336 stars 93 forks source link

[Documentation Issue?] Possible to use over GSM connection instead of WiFi? #75

Open datenheim opened 4 years ago

datenheim commented 4 years ago

I got ezTime running on WiFi like a breeze. Today we where wondering if or how it can also be used via GSM connection. It looks like it does ignore an already established GSM connection.

Setup: ESP32 + SIM800 module [aka TTGO T-CALL]

We have established GSM connection, logged in to the APN successfully, and transmit our data all few seconds - all working.

But ezTime mongers about WiFi or Network missing although we have the established mobile internet connection. How to tell the library to send it TCP/UDP packages over mobile instead of wifi?

vshymanskyy commented 4 years ago

The first issue is, the TinyGSM library currently does not support UDP (which is mainly used by ezTime). But, you should be able to disable networking of ezTime completely. In this case you have to fetch the time/tz data elsewhere, and use it to set up ezTime