vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.91k stars 708 forks source link

TinyGsmNTP #720

Open capedra opened 1 year ago

capedra commented 1 year ago

TimeZone from NTPServerSync function shouldn't be byte/unsigned char, because the range is (-47 to 48) according to the AT command manual.

Also, the CNTPCID of this same function should be changed as well if you don't want to face "63 Connection Error" or "61 Network Error":

thisModem().sendAT(GF("+CNTPCID=0"));