remove string usage for topic comparison
This commit is contained in:
1 parent
7f16d00a55
commit
f7ec81ffaa
13 files changed
+48
-29
No files matched your search
+1
-1
@@ -274,7 +274,7 @@ void IRtoMQTT(){
|
||||
#ifdef jsonReceiving
|
||||
void MQTTtoIR(char * topicOri, JsonObject& IRdata) {
|
||||
|
||||
if (strstr(topicOri,(char *)catToMainTopic(subjectMQTTtoIR).c_str()) != NULL){
|
||||
if (cmpToMainTopic(topicOri,subjectMQTTtoIR)){
|
||||
trc(F("MQTTtoIR json"));
|
||||
uint64_t data = IRdata["value"];
|
||||
const char * raw = IRdata["raw"];
|
||||
|
||||
Reference in new issue
Block a user