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:

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

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor