Commit Graph
27 Commits
Author SHA1 Message Date
Michał Obrembski a6616d4c4f Removed usage of String.clear()
It is not available in minimal_core_242_ESP8266_1M_OTA env
2020-05-19 13:39:27 +02:00
Michał Obrembski 0e03e2fda8 Renamed RAW to CSV, added printing of header 2020-05-19 10:19:16 +02:00
Michał Obrembski e2161521ae Fixed invalid check of valnr validity in CSV output mode 2020-05-19 10:19:16 +02:00
Michał Obrembski 60ddda946e Changed format of RAW to CSV, added ability to filter values 2020-05-19 10:19:16 +02:00
Michał Obrembski a33fef3974 Added /raw endpoint which gives an easy access to raw value of sensor
This will give you ability to get easy-parseable values for small embedded devices results
using only simple busybox tools such as awk or sed.
2020-05-19 10:19:16 +02:00
Gijs Noorlander 0f8ef96484 [JSON] Fix JSON output of values for single task
Generated JSON had trailing TTL value which rendered it invalid JSON.
2020-03-21 11:09:44 +01:00
Gijs Noorlander da4bb18c7b [ESP32] Rename WebServer object to web_server to fix build issues
ESP32's WebServer class has the same name as our global object had.
So you could only define it in ESPEasy.ino.

Now it is renamed to `web_server` and now ESP32 and ESP8266 will happily build with the global object defined in .h/.cpp.
2020-03-03 01:23:27 +01:00
Gijs Noorlander 37538f4124 [Build Size] Replace all TXBuffer += calls where possible
The TXBuffer is a "header only" implementation.
This means it may be compiled "inline" and thus takes quite a bit of compiled code.
This makes the binary larger and slows the ESP down.

Now it is even possible to make core 2.6.3 builds using "minimal OTA".
The "Dev" build is roughly 55k smaller.
2020-02-28 02:28:03 +01:00
Gijs Noorlander c8c12a0a3a [JSON] endpoint "buildinfo" declares plugins twice #2836
Fixes: #2836
2020-02-21 16:48:24 +01:00
Gijs Noorlander 3631030e00 [JSON] Add lowest TTL to highest level in JSON output
Needed for new UI
2020-02-21 15:01:38 +01:00
Gijs Noorlander b0fc381b27 [Notifiers] Make NPlugin functions into enum-class
As suggested by @uzi18 should the plugin function defines be an enum instead of defines.
This will allow to do compile time checks and also check whether all cases are handled.
2020-02-14 17:16:55 +01:00
TD-er fe5a15a8ab [Controller] Optimization by reducing number of checks.
As discussed [here](https://github.com/letscontrolit/ESPEasy/pull/2864#issuecomment-580894393)
2020-01-31 21:55:09 +01:00
Gijs Noorlander a74098e593 [Controllers] Restructure protocolIndex / controllerIndex and cplugin_ID
This was rather messy code and no checks.
It is now somewhat similar to the code for plugins defining the relation between:
- Plugin ID
- Task Index
- Device Index.
2020-01-26 22:29:41 +01:00
Gijs Noorlander b28645eba3 [JSON] Fix non valid timing stats json when no plugins defined (#2767)
On nodes without any plugins defined, the timing stats json would be invalid.
2019-12-08 16:49:57 +01:00
Gijs Noorlander a3a10f23f1 [WiFi] Improve ESP32 WiFi connect + fix mDNS updates 2019-12-03 12:22:23 +01:00
Gijs Noorlander a1ede2f624 [New UI] Add /buildinfo JSON to give list of included plugins/controllers
For the new UI, we need to fetch some JSON representing the included plugins, controllers and notifications.
2019-11-21 13:36:42 +01:00
Gijs Noorlander 761dac1f0d [Cleanup] Make timing stats optional to reduce size 2019-11-19 00:27:55 +01:00
Gijs Noorlander 75428d3989 [Cleanup] Change toString(bool) into boolToString(bool)
After finding a number of calls to toString() with only a single parameter, the value would be converted into a bool and then printed.
This will yield in unexpected results without a compiler warning.
2019-10-31 15:33:41 +01:00
Gijs Noorlander 0a4072fb2c Fix JSON service stopped working (#2697) 2019-10-29 22:57:51 +01:00
Gijs Noorlander f8168e9fe9 [Cleanup] Use taskIndex_t everywhere where a task index is used. 2019-10-23 17:07:52 +02:00
Gijs Noorlander 3c090f14f3 [Cleanup] Make use of consistent names for DeviceIndex (#2676)
See #2676
The use of DeviceIndex was not consistent, which may lead to strange issues.
DeviceIndex is the translation between the vector of included plugins and IDs of plugins available.
2019-10-22 16:23:21 +02:00
Gijs Noorlander cb44a71453 Move Device array from ESPEasy-Globals.h to Globals/Device.h 2019-09-25 00:46:04 +02:00
Gijs Noorlander fa86d44509 Move Nodes from ESPEasy-Globals.h to Globals/Nodes.h 2019-09-25 00:46:04 +02:00
Gijs Noorlander 421631c9f1 Move Plugin administration from ESPEasy-Globals.h to Globals/Plugin.h 2019-09-25 00:46:04 +02:00
Victor Antonovich 18cd016463 Fix duplicated "DNS 1" value in JSON output
Fix duplicated "DNS 1" value in JSON output due to a typo in handle_json() function.
2019-09-16 14:54:40 +04:00
Gijs Noorlander 49012df16e [Cleanup] Uncrustify of all WebServer_*.ino files 2019-08-09 17:24:47 +02:00
Gijs Noorlander 9bff07fd65 [Cleanup] Split Webserver.ino is separate files per page 2019-08-09 17:23:38 +02:00