Publishing/receiving inconsistencies fix (#1229)
* Publishing/receiving inconsistencies * General platformio.ini changes General platformio.ini changes to allow for publishing/receiving settings to be defined in User_cofig.h instead of them only working if defined in the environments. Kept separate so far for discussion.
This commit is contained in:
1 parent
3bd1d31fcc
commit
a388f14e75
15 files changed
+39
-40
No files matched your search
+2
-2
@@ -95,7 +95,7 @@ bool _2GtoMQTT() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
# ifdef simpleReceiving
|
||||
# if simpleReceiving
|
||||
void MQTTto2G(char* topicOri, char* datacallback) {
|
||||
String data = datacallback;
|
||||
String topic = topicOri;
|
||||
@@ -126,7 +126,7 @@ void MQTTto2G(char* topicOri, char* datacallback) {
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef jsonReceiving
|
||||
# if jsonReceiving
|
||||
void MQTTto2G(char* topicOri, JsonObject& SMSdata) {
|
||||
if (cmpToMainTopic(topicOri, subjectMQTTto2G)) {
|
||||
const char* sms = SMSdata["message"];
|
||||
|
||||
Reference in new issue
Block a user