Fix bugs
This commit is contained in:
parent
29f7545e2f
commit
9c557b1f8e
|
@ -1,4 +1,4 @@
|
||||||
|
#include <ArduinoJson.h>
|
||||||
#include <LiquidCrystal_I2C.h>
|
#include <LiquidCrystal_I2C.h>
|
||||||
#include <PubSubClient.h>
|
#include <PubSubClient.h>
|
||||||
#include <MqttWildcard.h>
|
#include <MqttWildcard.h>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
#include <ArduinoJson.h>
|
|
||||||
// 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"];
|
|
||||||
}
|
|
Loading…
Reference in New Issue