I'm looking at using the information received over MQQT later on in my mega sketch but am unsure how to do it and can't seem to find any indicators on the web.
Any help would be gratefully received.
void callback(char* topic, byte* payload, unsigned int length) {
Serial.print("Message arrived [");
Serial.print(topic);
Serial.print("] ");
for (int i=0;i<length;i++) {
Serial.print((char)payload[i]);
if (topic == "Pylon/SMA")
** {**
** messageSMA = received_payload;**
** }**
}
Serial.println();
}