aws / aws-iot-device-sdk-arduino-yun

SDK for connecting to AWS IoT from an Arduino Yún.
Apache License 2.0
163 stars 77 forks source link

Getting a date value without using process date process.h #40

Closed OtisHarrison24 closed 7 years ago

OtisHarrison24 commented 7 years ago

Is there anyway to get a timestamp to pass from the aws iot sdk to pass into my json file?

Thanks

liuszeng commented 7 years ago

Hi @OtisHarrison24 ,

Thank you very much for your interest in AWS IoT Arduino Yun SDK.

If you are looking for getting the timestamp from Arduino board instead of the embedded Linux, you can try out the following library: http://playground.arduino.cc/Code/Time

now() should give you a timestamp in seconds since Jan. 1, 1970.

Thanks, Liusu