jeelabs / el-client

Arduino client for esp-link's REST, MQTT, and command interface
BSD 2-Clause "Simplified" License
85 stars 47 forks source link

sync time between esp-link and el-client #17

Closed n3mawashi closed 8 years ago

n3mawashi commented 8 years ago

hi, is it possible to sync time from the esp8266 with the 2.2beta2 firmware through the el-client to update time on the ardunio?

tve commented 8 years ago

I'm not sure whether it wouldn't be better to either use a REST request from the arduino to get the time from a server or to send time sync messages via MQTT. This way you avoid putting the esp8266's time sync in the middle...

tve commented 8 years ago

I forgot, there is a command to fetch the time: https://github.com/jeelabs/el-client/blob/master/ELClient/ELClientCmd.cpp#L7-L13