1307 rtc and sd, how do you timestamp?


i want time stamp events occur dependent upon variety of inputs how feasible this?

i keep having issues such as:

request member 'year' in 'now' of non-class type 'time_t() {aka long unsigned int()}'

i saw github logging sensor readings using command:

logfile.print(now.second(), dec);



i thought use display different time , date information compiler did not understand yet have provided same libraries 1 example.

it says logfile not declared in scope.

can please not experienced programming.

you better post code, instead of explaining problems have fixed somewhere else.
if use classes, provide links libraries or class declarations.

in above case reason of error missing or wrong declaration, in global variables. can not add lines of code various projects, without declaring , initializing objects used these statements. each class, have to
- add class header: #include <someclass.h>
- create object: someclass myobject();
- initialize in setup(): myobject.begin();
before can reference myobject somwhere down in code.


Arduino Forum > Using Arduino > Project Guidance > 1307 rtc and sd, how do you timestamp?


arduino

Comments

Popular posts from this blog

Help with Missing Filename Error?

more info - Joomla! Forum - community, help and support

Using phone battery to power a plane.