We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa8a63 commit ddf86d3Copy full SHA for ddf86d3
src/EasyMqtt.h
@@ -47,8 +47,11 @@ class EasyMqtt : public MqttEntry {
47
get("system")["uptime"] << []() {
48
return String(millis() / 1000);
49
};
50
- get("system")["reset"] >> [](String value) {
51
- ESP.reset();
+ get("system")["restart"] >> [this](String value) {
+ if(value == "restart") {
52
+ debug("Restart");
53
+ ESP.restart();
54
+ }
55
56
}
57
src/MqttConfigEntry.h
@@ -6,7 +6,7 @@
6
7
class MqttConfigEntry : public MqttEntry {
8
public:
9
- EasyConfig(char* key, char* value) {
+ MqttConfigEntry(char* key, char* value) {
10
>> [](String value){
11
setValue(value);
12
// ToDo: Call store();
0 commit comments