Commit Graph
14 Commits
Author SHA1 Message Date
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 3f62778765 Fix unexpected string padding in parseTemplate (#2866)
The extra padding to a minimal line length does only make sense for use on displays and some special formatting.
So the majority of the uses of parseTemplate now uses 0 as minimum line length.

Fixes: #2866
Closes: #2867 (superseeds PR)
2020-02-04 17:06:15 +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 836ad1397b [Rules] Parse template for all command calls
Until now a lot of ways to handle a command were handling the pre-processing of the command differently.
So the source of the command can make a difference whether system variables can be used for example.

Now all use the same function to pre-process the commands.
2019-12-03 19:20:43 +01:00
Gijs Noorlander fe1c536ca2 [Cleanup] Extra boundary checks for deviceIndex 2019-10-31 17:14:48 +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 8d8f5e9a9d [Custom.h] Allow for other defines to be set by the user. 2019-09-25 00:46:04 +02:00
Gijs Noorlander 8e2f4f3d87 [Cleanup] Stop using global declared dummyString
This string may end up keeping quite some memory for way longer than actually needed.
2019-08-09 22:39:07 +02: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