Addition of NTP support for 0020000903/0020000904
Posted: Wed Dec 03, 2014 5:57 am
Hi All,
I added two new AT commands to get the module to get the time from NTP servers (pool.ntp.org), I used SDK version 0.9.3 and AT commands version 20 as starting point.
AT+CIPNTP=<offset from GMT> , to initialize the ntp, and start syncing the time - for example: AT+CIPNTP=2 to intialize it with GMT+2 offset.
AT+CIPNTP? - to get the current time, for example:
AT+CIPNTP?
Time: 22:22:42 12/02/2014 GMT+02
Firmware and SDK can be downloaded from http://bit.ly/esp8266-ntp.
Source code can be retrieved from https://github.com/TomerCo/ESP8266-AT
Update: binaries compiled with SDK 0.9.4 can be found at http://bit.ly/esp8266-ntp0-9-4
Comments / Suggestions are welcome.
I added two new AT commands to get the module to get the time from NTP servers (pool.ntp.org), I used SDK version 0.9.3 and AT commands version 20 as starting point.
AT+CIPNTP=<offset from GMT> , to initialize the ntp, and start syncing the time - for example: AT+CIPNTP=2 to intialize it with GMT+2 offset.
AT+CIPNTP? - to get the current time, for example:
AT+CIPNTP?
Time: 22:22:42 12/02/2014 GMT+02
Firmware and SDK can be downloaded from http://bit.ly/esp8266-ntp.
Source code can be retrieved from https://github.com/TomerCo/ESP8266-AT
Update: binaries compiled with SDK 0.9.4 can be found at http://bit.ly/esp8266-ntp0-9-4
Comments / Suggestions are welcome.