error message invalid conversion from 'const char*' to 'char' [-fpermissive]
hi all,
i want store data on local or sd storage.
i found library (edb) able this.
so have contruct table first:
and want fill database records data example:
when verify code fails on tijd , datum records.
im new arduino im doing wrong.
anybody how point me in right direction ?
thx !
bauke
i want store data on local or sd storage.
i found library (edb) able this.
so have contruct table first:
code: [select]
struct logevent {
int gebruikerid;
char tijd[8];
char datum[10];
}
logevent;
and want fill database records data example:
code: [select]
logevent.gebruikerid = 1;
logevent.tijd[8] = {"13:51:00"};
logevent.datum[10] = {"01/08/2017"};
db.appendrec(edb_rec logevent);
when verify code fails on tijd , datum records.
im new arduino im doing wrong.
anybody how point me in right direction ?
thx !
bauke
code: [select]
logevent.tijd[8] = {"13:51:00"};
logevent.tijd has 8 elements, accessing ninth element pointless.
even if meant use strcpy, need 9 elements store 8 character string.
Arduino Forum > Using Arduino > Programming Questions > error message invalid conversion from 'const char*' to 'char' [-fpermissive]
arduino
Comments
Post a Comment