I'm writing a sketch in order to upload to a Sonoff device ( Remote relay, based ESP8266 ).
All is working great, but I wish my MQTT pubs to contain following format:
[ DATE & TIME ] msg
ESP8266 is connected to the internet. I;m looking for a way doing it (including periodic time updates ) without running all 1MB memory, meaning: a code that 1) get time from external source (LAN or WAN ) 2) update it every 24h 3) Lite code ?