mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-23 07:26:59 +01:00
@@ -247,7 +247,7 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
|
||||
#endif
|
||||
#ifdef IR_PANASONIC
|
||||
if (strstr(topicOri, "IR_PANASONIC") != NULL){
|
||||
if (valueBITS == 0) valueBITS = 16;
|
||||
if (valueBITS == 0) valueBITS = PanasonicBits;
|
||||
if (valueRPT == 0) valueRPT = 2;
|
||||
irsend.sendPanasonic(PanasonicAddress, data, valueBITS, valueRPT);
|
||||
signalSent = true;
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
#define pubIRunknownPrtcl false // key to avoid mqtt publication of unknown IR protocol (set to true if you want to publish unknown protocol)
|
||||
#define PanasonicAddress 0x4004 // Panasonic address (Pre data)
|
||||
#define PanasonicBits 48U // Panasonic nr of bits (Pre data)
|
||||
|
||||
#ifdef ESP8266 //IR supported protocols on ESP8266, all supported per default
|
||||
#define IR_GC
|
||||
|
||||
Reference in New Issue
Block a user