fix warning about const char & upgrade arduino json library
This commit is contained in:
parent
50d48dcfe2
commit
5b30e0317d
@ -11,7 +11,7 @@ public:
|
||||
void fromJson(JsonObjectConst& rcSwitch, RCSwitch& rcDevice) override {
|
||||
unsigned int protocol = rcSwitch["protocol"];
|
||||
rcDevice.setProtocol(protocol);
|
||||
char* group = rcSwitch["group"];
|
||||
const char* group = rcSwitch["group"];
|
||||
int channel = rcSwitch["channel"];
|
||||
rcSwitch["state"] ? rcDevice.switchOn(group, channel) : rcDevice.switchOff(group, channel);
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ lib_extra_dirs =
|
||||
../libraries
|
||||
lib_deps =
|
||||
sui77/rc-switch@^2.6.3
|
||||
bblanchon/ArduinoJson@6.19.4
|
||||
bblanchon/ArduinoJson@6.21.5
|
||||
adafruit/Adafruit Unified Sensor@^1.1.4
|
||||
adafruit/DHT sensor library@1.3.10
|
||||
https://git.hodos.ro/arduino/lib_serial-reader.git@^1.0.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user