Merge pull request #5 from crankyoldgit/master

Correct the invocation of Coolix, Sharp, & Dish IR sends.
This commit is contained in:
1technophile authored and GitHub committed 2017-01-07 09:55:44 +01:00
commit c7644cf706
1 file changed
+3 -3
+3 -3
View File
@@ -317,7 +317,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)
@@ -327,9 +327,9 @@ void receivingMQTT(String topicNameRec, String callbackstring) {
if (topicNameRec == subjectMQTTtoIRSony) if (topicNameRec == subjectMQTTtoIRSony)
irsend.sendSony(data, 12); irsend.sendSony(data, 12);
if (topicNameRec == subjectMQTTtoIRDISH) if (topicNameRec == subjectMQTTtoIRDISH)
irsend.sendDISH(data, 36); // Note: data (unsigned long) is only 32bits long on the ESP8266. irsend.sendDISH(data, 16);
if (topicNameRec == subjectMQTTtoIRSharp) if (topicNameRec == subjectMQTTtoIRSharp)
irsend.sendSharp(data, 36); // Note: data (unsigned long) is only 32bits long on the ESP8266. irsend.sendSharpRaw(data, 15);
/* /*
Panasonic has a two arguments per call. An address(16bit) and data(32bit), not data and nr_bits. Panasonic has a two arguments per call. An address(16bit) and data(32bit), not data and nr_bits.
if (topicNameRec == subjectMQTTtoIRPanasonic) if (topicNameRec == subjectMQTTtoIRPanasonic)