I use the latest esp8266 AT firmware (rtos based).
based on this official doc: https://docs.espressif.com/projects/esp-at/en/latest/AT_Command_Set/TCP-IP_AT_Commands.html#id56
<timezone>: support the following two formats:
The first format range is [-12,14]. It marks most of the time zones by offset from Coordinated Universal Time (UTC) in whole hours (UTC−12:00 to UTC+14:00).
The second format is UTC offset. The UTC offset specifies the time value you must add to the UTC time to get a local time value. It has syntax like [+|-]hh[mm]. This is negative if the local time zone is on the west of the Prime Meridian and positive if it is on the east. The hour(hh) must be between -12 and 14, and the minute(mm) between 0 and 59. For example, if you want to set the timezone to New Zealand (Chatham Islands) which is in UTC+12:45, you should set the parameter <timezone> to 1245. Please refer to UTC offset
wiki for more information.Code: Select all
// Enable SNTP server, set timezone to China (UTC+08:00)
// Enable SNTP server, set timezone to New York of the United States (UTC−05:00)
// Enable SNTP server, set timezone to New Zealand (Chatham Islands, UTC+12:45)
I need to set the timezone to +3:30.
This AT firmware is working with method 1 but returns ERROR for method 2.
AT version:126.96.36.199(ded5b14 - Jul 24 2020 12:01:05)
compile time(36bb200):Jul 28 2020 08:30:34
What I am doing wrong?