diff --git a/WaterishOS-core3.0/WaterishOS-core3.0.ino b/WaterishOS-core3.0/WaterishOS-core3.0.ino index e5d5225..99159a5 100644 --- a/WaterishOS-core3.0/WaterishOS-core3.0.ino +++ b/WaterishOS-core3.0/WaterishOS-core3.0.ino @@ -1,4 +1,4 @@ - +#include #include #include #include diff --git a/WaterishOS-core3.0/espcommander.cpp b/WaterishOS-core3.0/espcommander.cpp deleted file mode 100644 index 8bf128e..0000000 --- a/WaterishOS-core3.0/espcommander.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include -// Copyright Siwat INC(tm) 2019 -// Created by Siwat Sirichai -// ESPCommander EXTENDED v1.2 -void espcommander(String topic, String rawcommand) { - StaticJsonDocument<200> doc; - DeserializationError error = deserializeJson(doc, rawcommand); - if (error) { - Serial.print(F("deserializeJson() failed: ")); - Serial.println(error.c_str()); - return; - } - const char* command = doc["command"]; - const char* value = doc["value"]; -}