Go Down

Topic: Time Libraries (Read 1 time) previous topic - next topic

PaulS

Quote
Well  just got done going over the file and this may be the cause of the problem

That's the line that the compiler is telling you to change. It should be pretty simple to do so (at least with 1.0.2).

be80be

Ok it should be simple but there not any thing that shows how to handle a byte.
Looks like it would be done this way
Code: [Select]
Serial.write( TIME_HEADER);
Now for next problem
Code: [Select]
C:\Documents and Settings\Burt\My Documents\Downloads\arduino-1.0.2-windows\arduino-1.0.2\libraries\DateTime\DateTime.cpp: In member function 'void DateTimeClass::setTime(time_t)':
C:\Documents and Settings\Burt\My Documents\Downloads\arduino-1.0.2-windows\arduino-1.0.2\libraries\DateTime\DateTime.cpp:28: error: 'millis' was not declared in this scope
C:\Documents and Settings\Burt\My Documents\Downloads\arduino-1.0.2-windows\arduino-1.0.2\libraries\DateTime\DateTime.cpp: In member function 'time_t DateTimeClass::now()':
C:\Documents and Settings\Burt\My Documents\Downloads\arduino-1.0.2-windows\arduino-1.0.2\libraries\DateTime\DateTime.cpp:43: error: 'millis' was not declared in this scope

be80be

While I think I found that to just need to figure where to put this

Code: [Select]
time = millis(); to fix it

danb35


I was wanting to use the time libraries

Which time library(ies)?  There are several.  This one: http://www.arduino.cc/playground/Code/Time has no problems with Arduino 1.0.1.

Go Up