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
@@ -878,7 +878,7 @@ void receivingMQTT(char * topicOri, char * datacallback) {
|
||||
#ifdef ZgatewayPilight // ZgatewayPilight is only defined with json publishing
|
||||
MQTTtoPilight(topicOri, jsondata);
|
||||
#endif
|
||||
#ifdef jsonPublishing
|
||||
#ifdef jsonReceiving
|
||||
#ifdef ZgatewayRF
|
||||
MQTTtoRF(topicOri, jsondata);
|
||||
#endif
|
||||
@@ -905,7 +905,7 @@ void receivingMQTT(char * topicOri, char * datacallback) {
|
||||
MQTTtoONOFF(topicOri, jsondata);
|
||||
#endif
|
||||
} else { // not a json object --> simple decoding
|
||||
#ifdef simplePublishing
|
||||
#ifdef simpleReceiving
|
||||
#ifdef ZgatewayRF
|
||||
MQTTtoRF(topicOri, datacallback);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user