Hi @ScruffR
I am doing the digital clock application. And I am trying to set the time zone automatically based on the ip address. With the help of the below code I got the IP address in serial monitor .
void handler(const char *topic, const char *data) {
Serial.println("received " + String(topic) + ": " + String(data));
}
void setup() {
Serial.begin(115200);
Particle.subscribe(“particle/device/ip”, handler);
Particle.publish(“particle/device/ip”);
}
But am not able to figure out that converting into time zone. If you share any information regarding this it would be helpful for me