-->
Page 1 of 1

ESP8266 and getting time from web api

PostPosted: Fri Sep 18, 2015 11:33 am
by mrfsrf
Hi all,
Im losing my mind here. I searched all around for possible tutorials/tips/workarounds for this one and it buzzled me that none has done or even tried something so simple. Basically, im trying to retrive time using esp8266 AT command from web time api. Tried few of them, but none was "esp8266 or AT" friendly, meaning that your have to give the api key and service name in the url which is bummer, since i have to connect first to the web server using AT+CIPSTART and then retrive time using AT+CIPSEND and GET.
Im hitting the wall here. Has anyone solution to this. thanks a bunch!

Re: ESP8266 and getting time from web api

PostPosted: Fri Sep 18, 2015 5:45 pm
by lakid
There is a build of the AT app which has NTP in it
https://github.com/TomerCo/ESP8266-AT
It was built for a *much* older SDK so it may not work against a much newer version

Re: ESP8266 and getting time from web api

PostPosted: Fri Sep 18, 2015 8:20 pm
by martinayotte
Do you really need to stick with an AT firmware ?
Maybe you can build your own that will meet your needs ...

Re: ESP8266 and getting time from web api

PostPosted: Sat Sep 19, 2015 3:08 am
by torntrousers
I've not used the AT commands so not sure whats possible but if they let you send an HTTP request could you use the approach outline here of sending an http HEAD request to a website and from the response parsing the standard http Date header?