correct issue when using a special pulselength or/and a special protocol and the default subject
in this case special protocol and pulselength are not taken into account https://community.home-assistant.io/t/433mhz-infrared-ir-to-and-from-mqtt-on-esp8266/6779/89?u=1technophile
This commit is contained in:
1 parent
53e2c2bd39
commit
5c0378de77
1 file changed
+2
-2
+2
-2
@@ -18,7 +18,7 @@
|
|||||||
- Spudtater
|
- Spudtater
|
||||||
- rickybrent
|
- rickybrent
|
||||||
|
|
||||||
IMPORTANT NOTE: On arduino UNO connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library <library>IRremote/IRremoteInt.h so as to free pin D3 for RF RECEIVER PIN
|
IMPORTANT NOTE: On arduino connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library <library>IRremote/IRremoteInt.h so as to free pin D3 for RF RECEIVER PIN
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
||||||
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
||||||
@@ -305,7 +305,7 @@ void receivingMQTT(char * topicOri, char * datacallback) {
|
|||||||
trc(String(valuePLSL));
|
trc(String(valuePLSL));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((topic == subjectMQTTto433)){
|
if ((topic == subjectMQTTto433) && (valuePRT == 0) && (valuePLSL == 0)){
|
||||||
trc(F("Sending data by RF, default parameters"));
|
trc(F("Sending data by RF, default parameters"));
|
||||||
mySwitch.setProtocol(1,350);
|
mySwitch.setProtocol(1,350);
|
||||||
mySwitch.send(data, 24);
|
mySwitch.send(data, 24);
|
||||||
|
|||||||
Reference in new issue
Block a user