Commit Graph
45 Commits
Author SHA1 Message Date
TD-er 8b992eb352 Merge branch 'mega' into feature/MQTT_TLS 2024-07-13 12:45:11 +02:00
TD-er c09d41f2f8 [Cleanup] Speedup all calls where task value name was used
A lot of extra work was done to determine the number of taskvalues, on each call.

Sending 4 task values to a MQTT controller (C005) for example took 20 msec on average, now about 10 msec.
2024-06-18 11:50:27 +02:00
TD-er 903434fac2 [Cleanup] Revert changed line-ending back to CRLF (.cpp) 2024-05-31 00:20:32 +02:00
TD-er 4c40206974 [Commands] Allow commands from external source to be queued (stack)
To be a bit more friendly on the stack usage, we need to be able to queue commands so they can be processed directly from the loop() instead of deep in the processing of some plugin or controller code.

[Build] Remove ESP8266 1M IR-ext build

[Commands] Fix copy/paste error handling commands
2024-01-23 14:35:19 +01:00
TD-er 4f4ff8721b Merge branch 'mega' into feature/MQTT_TLS 2023-12-25 23:02:02 +01:00
TD-er a78c8fd929 [Cleanup] Simplify calling internal commands 2023-12-19 01:15:36 +01:00
TD-er ef9c263b3e [ESP8266] Optimize memory allocations + 2nd heap 2023-11-16 17:52:28 +01:00
TD-er 3475de24ca [ESP8266] Fix stability issues when using 2nd heap 2023-11-15 11:44:41 +01:00
TD-er b00cc01ca1 [Cleanup] Reduce build size by compacting logs 2023-10-29 14:12:22 +01:00
TD-er e387cd3bac Merge branch 'mega' into feature/MQTT_TLS 2023-09-21 22:29:35 +02:00
TD-er e0be0224a3 [ADC] Fix handling negative ADC values from Hall Effect sensor 2023-09-21 10:23:02 +02:00
TD-er f8bb41eb67 [Cleanup] Do not use 'Number' in DeviceStruct class 2023-09-17 15:56:25 +02:00
TD-er 71630ba87b [Cleanup] Remove no longer needed globals/Protocol.h/.cpp 2023-09-15 18:13:15 +02:00
TD-er 922ad76e5e [Controller] Simplify ESPEasy core administration of CPlugins 2023-09-15 17:09:09 +02:00
TD-er 4e9122166a [Cleanup] Fix crashing compiler on ESP8266 builds 2023-09-13 12:18:39 +02:00
TD-er a6ca66aab0 Merge branch 'mega' into feature/MQTT_TLS 2023-05-10 23:06:37 +02:00
TD-er cc7602539f [Build] Fix building ESPEasy in PlatformIO 6.1.7 (#4656)
* [PIO build] Update build scripts for scons 4.5.x

* [Build] Fix build error due to strange cast of double type in rules

* [Build] Work-around for new ESP8266 macro of round()

Whoever thought it would be a good idea to make round() an explicit cast to `long`....

* [Build ESP8266] Replace calls to round()

* [Build] Use HWrandom to overcome build issues

* [Build] Fix missing include

* [Build] Remove extern "C" to allow for (C++) function overloading

* [Build] include ESPEasy_common.h instead of Arduino.h where possible

* [Cleanup] Moving not commonly needed code out of ESPEasy_common.h

* [Build] Remove "Helpers" folder from concat script

* [Build] Include ESPEasy_common.h instead of ESPEasy_config.h

* [Build] Add Helpers folder to concat .cpp for ESP8266

* [Build] Add ESPEasyCore to concat cpp & split global RulesCalculate obj

* [Build test] Disable lots of plugins + not concat Helpers/*.cpp

* [Build test] Disable P037 to test build failures

* [Build test] Undef round right after include <Arduino.h>

* [Build] Revert disabling plugins + concat Helpers/*.cpp

* [Build] Include cmath after Arduino.h to redefine round()

* [Build] Fix ESP32 build error

* [Build] Add ESP32_CLASSIC define for ESP32 IR build
2023-05-10 23:00:33 +02:00
TD-er 57d78658de Merge branch 'mega' into feature/MQTT_TLS 2023-03-31 17:49:47 +02:00
Ton Huisman 1d7a194213 Merge branch 'mega' of https://github.com/letscontrolit/ESPEasy into bugfix/C014-replace-dummyvalueset-by-taskvalueset 2023-03-15 23:26:39 +01:00
Ton Huisman b20a29ee56 [C014] Minor corrections 2023-03-15 23:25:39 +01:00
Ton Huisman d251e6b21d [C014] [Homie MQTT] replace DummyValueSet by TaskValueSet (bugfix) 2023-03-15 22:22:34 +01:00
TD-er bb5258340d Merge branch 'mega' into feature/MQTT_TLS 2023-02-16 08:41:38 +01:00
TD-er 863b5ffc5f [Cleanup] Small tweaks suggested to reduce bin size 2023-02-15 10:24:53 +01:00
TD-er e195acdd1f [Cleanup] Reduce build size by using own equals() function 2023-02-14 16:40:09 +01:00
TD-er 0bdeb6dac1 [Cleanup] Reduce build size using own equals function for flash strings 2023-02-14 15:43:33 +01:00
TD-er 7205606d72 Merge branch 'mega' into feature/MQTT_TLS 2023-02-06 15:36:19 +01:00
Ton Huisman 92e3287822 [Config] Rename getUnitname() to getName() to avoid confusion, fix error that was introduced 2023-01-27 20:21:56 +01:00
Ton Huisman 509e03be16 [Config] Replace Settings.Name by Settings.getUnitname() 2023-01-26 23:34:14 +01:00
TD-er d39d1d3585 Merge branch 'mega' into feature/MQTT_TLS 2023-01-18 13:34:13 +01:00
TD-er 30ec3a6c2e [Controller Queue] Do not format message when controller queue is full 2023-01-18 12:03:02 +01:00
TD-er 13116f1df5 Merge branch 'mega' into feature/P146_cacheControllerReader 2023-01-13 21:07:56 +01:00
TD-er 25874e1b72 Merge branch 'mega' into feature/MQTT_TLS 2023-01-13 21:05:54 +01:00
TD-er 9ab9a63f58 [Cache] Reduce nr of file load/save calls to a minimum. 2023-01-12 22:35:52 +01:00
TD-er 8f1ee2edc6 [CacheReader] Add rate limiter + command to set readpos 2022-12-18 17:33:57 +01:00
TD-er 1a105617a5 [MQTT TLS] Rename USE_MQTT_TLS to FEATURE_MQTT_TLS 2022-10-16 17:14:11 +02:00
TD-er 20f51b3528 Merge branch 'mega' into feature/MQTT_TLS 2022-09-02 22:59:01 +02:00
TD-er 58bb124638 [Build] Reduce bin size & merge NodeStruct from ESPEasy-NOW PR 2022-09-02 17:21:18 +02:00
TD-er fdf6c61bf7 Merge branch 'mega' into feature/MQTT_TLS 2022-08-28 00:54:54 +02:00
TD-er 012104a90a [String] Use .equals for flash strings instead of == 2022-08-26 17:00:03 +02:00
TD-er 9f19c785d5 Merge branch 'mega' into feature/MQTT_TLS 2022-02-10 23:19:55 +01:00
TD-er bb3d60e3a7 [Cleanup] Simple fixes to prevent String reallocation. 2022-02-10 16:11:29 +01:00
TD-er 10cca9ca72 [Log] Call addLogMove where log Strings can be moved instead of copied
This is a macro for:
```
#define addLogMove(L, S)  addToLogMove(L, std::move(S))
```

This will then try to move the constructed string to the log buffer.
If it cannot be moved (e.g. log level is not active), the string will be cleared to free up memory.
2022-02-09 22:28:18 +01:00
TD-er 7d7ca8e812 Merge remote-tracking branch 'origin/feature/MQTT_TLS' into feature/MQTT_TLS 2022-02-08 12:39:03 +01:00
TD-er 812485a1bb [Cleanup] Change NULL to nullptr 2022-02-07 11:52:44 +01:00
TD-er 1cfd75d6bf [INO to CPP] Rename Cnnn.ino to Cnnn.cpp
This way we know for sure the Arduino typical build issues will be affecting building controllers.
2022-01-31 11:01:41 +01:00