[SYS] Externalize utils function keep cmpToMainTopic (#2048)
And fill generateHash Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
5e65e807b7
commit
2b958ae363
23 files changed
+163
-42
No files matched your search
+2
-2
@@ -100,7 +100,7 @@ void MQTTto2G(char* topicOri, char* datacallback) {
|
||||
String data = datacallback;
|
||||
String topic = topicOri;
|
||||
|
||||
if (TheengsUtils::cmpToMainTopic(topicOri, subjectMQTTto2G)) {
|
||||
if (cmpToMainTopic(topicOri, subjectMQTTto2G)) {
|
||||
Log.trace(F("MQTTto2G data analysis" CR));
|
||||
// 2G DATA ANALYSIS
|
||||
String phone_number = "";
|
||||
@@ -128,7 +128,7 @@ void MQTTto2G(char* topicOri, char* datacallback) {
|
||||
|
||||
# if jsonReceiving
|
||||
void MQTTto2G(char* topicOri, JsonObject& SMSdata) {
|
||||
if (TheengsUtils::cmpToMainTopic(topicOri, subjectMQTTto2G)) {
|
||||
if (cmpToMainTopic(topicOri, subjectMQTTto2G)) {
|
||||
const char* sms = SMSdata["message"];
|
||||
const char* phone = SMSdata["phone"];
|
||||
Log.trace(F("MQTTto2G json data analysis" CR));
|
||||
|
||||
Reference in new issue
Block a user