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:
Florian committed 2019-01-09 21:01:38 +01:00
1 parent c7fe43eb97
commit 68352f10e6
9 files changed
+18 -16

No files matched your search

+2 -2
View File
@@ -100,7 +100,7 @@ void rf2Callback(unsigned int period, unsigned long address, unsigned long group
}
#ifdef simplePublishing
#ifdef simpleReceiving
void MQTTtoRF2(char * topicOri, char * datacallback) {
// RF DATA ANALYSIS
@@ -214,7 +214,7 @@ void rf2Callback(unsigned int period, unsigned long address, unsigned long group
}
#endif
#ifdef jsonPublishing
#ifdef jsonReceiving
void MQTTtoRF2(char * topicOri, JsonObject& RF2data) { // json object decoding
if (strcmp(topicOri,subjectMQTTtoRF2) == 0){