The library includes an example called "TimeSerial". This program lets you send it the number of seconds since January 1st 1970 using the serial connection. It then decodes the message and uses it to set the microcontrollers time which it then continues to keep.
To send the special message to the Arduino using MegunoLink Pro, add a connection manager, monitor, and interface panel. In the interface panel add a button and configure it to send the following message:
The Arduino will detect the message and update its time to match It's that simple!
Code: Select all
Give me a yell here if you have any questions. I'll also organise an example of this to go in to the next version of the MegunoLink library.