An example :
char aMessage[] = {"hello"};
void setup()
{
Serial.begin(115200);
if (aMessage == "hello") //the wrong way
{
Serial.println("matched using ==");
}
if (strcmp(aMessage, "hello") == 0) //the right way
{
Serial.println("matched using strcmp()");
}
}
void loop()
{
}