Correct datastring implementation going to the esp to reset if publishing value and protocol only
This commit is contained in:
1 parent
4b0d3943ce
commit
60bc75f0b6
1 file changed
+8
-4
+8
-4
@@ -277,19 +277,23 @@ void IRtoMQTT(){
|
||||
const char * raw = IRdata["raw"];
|
||||
const char * datastring = IRdata["datastring"];
|
||||
if (data != 0 || raw || datastring) {
|
||||
trc(F("MQTTtoIR data || raw ok"));
|
||||
trc(F("MQTTtoIR value || raw || datasring ok"));
|
||||
bool signalSent = false;
|
||||
trc(F("value"));
|
||||
trc(data);
|
||||
trc(F("raw"));
|
||||
trc(raw);
|
||||
if(datastring){
|
||||
trc(F("datastring"));
|
||||
trc(datastring);
|
||||
}else{
|
||||
datastring ="";
|
||||
}
|
||||
const char * protocol_name = IRdata["protocol_name"];
|
||||
unsigned int valueBITS = IRdata["bits"];
|
||||
unsigned int valueBITS = IRdata["bits"]|0;
|
||||
uint16_t valueRPT = IRdata["repeat"]|repeatIRwNumber;
|
||||
|
||||
if(raw){
|
||||
trc(F("raw"));
|
||||
trc(raw);
|
||||
unsigned int s = strlen(raw);
|
||||
//number of "," value count
|
||||
int count = 0;
|
||||
|
||||
Reference in new issue
Block a user