2
2
3
3
## Improvements
4
4
5
- Change MqttMap to include reference to mqttclient
5
+ ### Change MqttMap to include reference to mqttclient
6
6
* Change loop, publish, ... to not need mqttclient
7
7
8
- Add easyMqtt/$id/system/connected + will to indicate if device is online
8
+ ### Add easyMqtt/$id/system/connected + will to indicate if device is online
9
9
10
10
## Future
11
11
12
- Add system info
12
+ ### Add system info
13
13
* easyMqtt/$id/system/uptime
14
14
* easyMqtt/$id/system/mem
15
15
* easyMqtt/$id/system/reset
16
16
* easyMqtt/$id/system/debug
17
17
* easyMqtt/$id/system/config
18
18
19
- Add better debugging
19
+ ### Add better debugging
20
20
* Add new EasyDebug class, extends Print (Print.h), and prints to easyMqtt/$id/system/debug if enabled
21
21
* Add getDebugger on EasyMqtt that returns the EasyDebug instance
22
22
23
- Add support for filters
23
+ ### Add support for filters
24
24
* Don't send if value is the same as last.
25
25
* Don't send if value is Nan
26
26
27
- Add support for float type (extend MqttMap)
27
+ ### Add support for float type (extend MqttMap)
28
28
29
- Add publish configured endpoints, to support openhab2 auto configure
29
+ ### Add publish configured endpoints, to support openhab2 auto configure
30
30
something like
31
31
easyMqtt/$id/system/config
32
32
{
@@ -36,3 +36,27 @@ easyMqtt/$id/system/config
36
36
}
37
37
38
38
Read / Write / String / Number / ...
39
+
40
+ ### Add config values
41
+ Add config values that is persisted to flash memory
42
+
43
+ http://esp8266.github.io/Arduino/versions/2.0.0/doc/filesystem.html
44
+
45
+ ``` C++
46
+ #include < EasyMqtt.h>
47
+
48
+ EasyMqtt mqtt;
49
+
50
+ setup () {
51
+ // init config with name "test" with default value 123
52
+ // The value can be changed using easyMqtt/$id/config/test
53
+ // Is loaded from
54
+ mqtt.config("timeout", 5000);
55
+ }
56
+
57
+ loop () {
58
+ mqtt.loop();
59
+ mqtt.config("timeout"); // Read back config value
60
+ }
61
+
62
+ ```
0 commit comments