differentiate receiving and publishing mqtt for the new json option in user_config.h
#318 so as to avoid user with non modified controllers to have regression on receiving (per default receiving is activated for both json and simple and prioritary analysed for json)
This commit is contained in:
1 parent
c7fe43eb97
commit
68352f10e6
9 files changed
+18
-16
No files matched your search
+2
-2
@@ -97,7 +97,7 @@ void RFtoMQTTdiscovery(unsigned long MQTTvalue){//on the fly switch creation fro
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef simplePublishing
|
||||
#ifdef simpleReceiving
|
||||
void MQTTtoRF(char * topicOri, char * datacallback) {
|
||||
|
||||
unsigned long data = strtoul(datacallback, NULL, 10); // we will not be able to pass values > 4294967295
|
||||
@@ -153,7 +153,7 @@ void MQTTtoRF(char * topicOri, char * datacallback) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef jsonPublishing
|
||||
#ifdef jsonReceiving
|
||||
void MQTTtoRF(char * topicOri, JsonObject& RFdata) { // json object decoding
|
||||
|
||||
if (strcmp(topicOri,subjectMQTTtoRF) == 0){
|
||||
|
||||
Reference in new issue
Block a user