Hi,
I'm using FileLogger lib.
I would like to create a function for logging info bat i have a problem with variables:
my code:
void write_log(char msg[]){
unsigned int length = (strlen(msg)+1);
byte buffer[length];
buffer = msg;
FileLogger::append(FILE_LOG, buffer, length);
}
on my loop:
write_log("test 123 prova 123");
but error generated
In function 'void write_log(char*)':
error: incompatible types in assignment of 'char*' to 'byte [(((unsigned int)(((int)length) + -0x000000001)) + 1)]
please help me?
thanks!!