sprintf(buffer, "%d,%d,%d",giatri1, giatri2, giatri3);
Serial.println(buffer);
delay(200); //
}
It said 'buffer' was not declared in this scope. How can I fix it?
Please, search Google for an example and then try to understand the function of sprintf(argument list) function to discover the meanings of the arguments of the function.
By declaring buffer.
try
char buffer [40];
sprintf(buffer, "%d,%d,%d",giatri1, giatri2, giatri3);
Serial.println(buffer);