drawImage Fail - MQTT Subscription

Hi everyone,

I´m currently working in a POC with the Wio Terminal and MQTT. I have successfully integrate MQTT and Wio Terminal, the problem is that in my logic depending in the message that came in the payload, display a specific Image.
For example:

void callback(char* topic, byte* payload, unsigned int length) {
//tft.fillScreen(TFT_BLACK);
Serial.print(“Message arrived [”);
Serial.print(topic);
Serial.print("] ");
char buff_p[length];
for (int i = 0; i < length; i++) {
Serial.print((char)payload[i]);
buff_p[i] = (char)payload[i];
}
Serial.println();
buff_p[length] = ‘\0’;
String msg_p = String(buff_p);
//tft.print(msg_p); // Print received payload
if(msg_p == “mask”){
//drawImage<uint8_t>(“face.bmp”, 0,0);
tft.fillScreen(0xFFFF);
}
if(msg_p == “Nomask”){
//drawImage<uint8_t>(“face.bmp”, 0,0);
tft.fillScreen(0xFFFF);
}

}

As you could see in my IF condition i call the method drawImages but is failing, since when i comment and only send an specific color to the terminar everything is working as expect.

I have also test my images display in the setup and everything is working, is only failing here in the callback of MQTT.

Could anyone please help me?? Any one could have a clue?

Thanks.