SmartThings Community

Pass NTP time to shield

(Brian) #1

Ethernet and wifi shields can be quite expensive. Is there a possibility of passing NTP time from SmartThings to the arduino to keep it accurate?

(Alex King) #2

Nice idea - I imagine you could do something like this?

def t = new Date()
zigbee.smartShield(text: t)

I think that’d give the arduino something like “Fri Sep 26 19:23:30 EST 2008”? Although it might be easier to parse a different format.

1 Like
(Michael) #3

@docwisdom Sorry to revive an old post but curious if you ever get this working. I am working on a project that I could use time within my Arduino code.