Coolix IR protocol has 3 bytes of data

3 bytes == 24 bits.
This commit is contained in:
crankyoldgit authored and GitHub committed 2017-01-07 17:47:39 +10:00
1 parent 5775f3fe63
commit 8b310eb6e6
1 file changed
+1 -1
+1 -1
View File
@@ -261,7 +261,7 @@ void receivingMQTT(String topicNameRec, String callbackstring) {
} }
//send received MQTT value by IR signal (example of signal sent data = 1086296175) //send received MQTT value by IR signal (example of signal sent data = 1086296175)
if (topicNameRec == subjectMQTTtoIRCOOLIX) if (topicNameRec == subjectMQTTtoIRCOOLIX)
irsend.sendCOOLIX(data, 36); // Note: data (unsigned long) is only 32bits long on the ESP8266. irsend.sendCOOLIX(data, 24);
if (topicNameRec == subjectMQTTtoIRWhynter) if (topicNameRec == subjectMQTTtoIRWhynter)
irsend.sendWhynter(data, 32); irsend.sendWhynter(data, 32);
if (topicNameRec == subjectMQTTtoIRNEC) if (topicNameRec == subjectMQTTtoIRNEC)