From 9c557b1f8e66fa35a7483279f0b0f920ba07c0ad Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 21 Aug 2019 21:19:57 +0700 Subject: [PATCH] Fix bugs --- WaterishOS-core3.0/WaterishOS-core3.0.ino | 2 +- WaterishOS-core3.0/espcommander.cpp | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 WaterishOS-core3.0/espcommander.cpp 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"]; -}