This commit is contained in:
Siwat Sirichai 2019-08-21 21:19:57 +07:00
parent 29f7545e2f
commit 9c557b1f8e
2 changed files with 1 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#include <ArduinoJson.h>
#include <LiquidCrystal_I2C.h>
#include <PubSubClient.h>
#include <MqttWildcard.h>

View File

@ -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"];
}