[SYS] Externalize utils functions (#2046)

To declutter main.ino code

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-09-04 10:31:51 -05:00
1 parent 0999563095
commit 5e65e807b7
23 files changed
+295 -231

No files matched your search

+2 -2
View File
@@ -141,7 +141,7 @@ void MQTTtoRF2(char* topicOri, char* datacallback) {
//We look into the subject to see if a special RF protocol is defined
String topic = topicOri;
bool boolSWITCHTYPE;
boolSWITCHTYPE = to_bool(datacallback);
boolSWITCHTYPE = TheengsUtils::to_bool(datacallback);
bool isDimCommand = false;
long valueCODE = 0;
@@ -243,7 +243,7 @@ void MQTTtoRF2(char* topicOri, char* datacallback) {
# if jsonReceiving
void MQTTtoRF2(char* topicOri, JsonObject& RF2data) { // json object decoding
if (cmpToMainTopic(topicOri, subjectMQTTtoRF2)) {
if (TheengsUtils::cmpToMainTopic(topicOri, subjectMQTTtoRF2)) {
Log.trace(F("MQTTtoRF2 json" CR));
int boolSWITCHTYPE = RF2data["switchType"] | 99;
bool success = false;