Sending infrared over mqtt error

I still haven't figured out what you are trying to send over MQTT. Or why.

I've never used this library, but you might try:
(untested code).

if (irrecv.decode(&results)) {
    sprintf(msg, "%#x", results.value);
    Serial.println(msg);                //Just to see what you are publishing
    client.publish("outTopic", msg);
    irrecv.resume();
  }
1 Like