Change topics concatenation method
Correct regression introduced by #503 Nevertheless this method needs to be optimized to avoid the use of string.
This commit is contained in:
1 parent
c0ddf77c9f
commit
7f16d00a55
12 files changed
+23
-23
No files matched your search
@@ -74,7 +74,7 @@ void MQTTtoPilight(char * topicOri, JsonObject& Pilightdata) {
|
||||
|
||||
int result = 0;
|
||||
|
||||
if (strstr(topicOri,catToMainTopic(subjectMQTTtoPilight)) != NULL){
|
||||
if (strstr(topicOri,(char *)catToMainTopic(subjectMQTTtoPilight).c_str()) != NULL){
|
||||
trc(F("MQTTtoPilight json data analysis"));
|
||||
const char * message = Pilightdata["message"];
|
||||
const char * protocol = Pilightdata["protocol"];
|
||||
|
||||
Reference in new issue
Block a user