Hey All,
I'm stuck on a seemingly easy if statement comparison.
How can get this if statement to work?
Thx
Rich
void ledControl(char* topic, byte* payload, unsigned int length) {
for (int i = 0; i < length; i++) {
Serial.print((char)payload[i]); // this renders as expected
}
Serial.println(topic); // this renders as expected
if (topic == '/hangingLamp/stream') { // I can't seem to get this comparison to work
Serial.println("bull sandwhich");
}
}