Commit Graph
34 Commits
Author SHA1 Message Date
TD-er 7270701b72 [Cleanup] Rename ambiguously controller_number in controller code 2024-06-23 16:02:37 +02:00
TD-er d3b65298c7 [Controller] Fail gracefully when almost out of memory
One often reported issue is that the ESPEasy node (especially ESP8266 ones) will crash when WiFi is unstable.

This could be due to memory suddenly filling up by the controller queue.
When creating a new item for the controller queue, there was no `(std::nothrow)` included on the `new` calls, so if running out of memory this might have thrown a `std::bad_alloc` exception, which are not caught and thus ESPEasy might crash on it.
2024-05-23 15:19:39 +02:00
TD-er c909194f65 [Build] Reduce ESP8266 build size by concat all in single __tmpfile.cpp 2024-05-01 18:43:26 +02: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 69103b1d0d [ESP8266] Switch to using 2nd heap with Arduino SDK 3.1.2 2023-11-14 13:31:58 +01: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 9c07393225 [Scheduler] Cleanup of Scheduler code 2023-09-12 12:29:51 +02:00
TD-er 405691b68c [Cleanup] Simplify allocation of ControllerSettings allocation, memleak? 2023-07-10 10:30:54 +02:00
TD-er 3d40e855d7 Merge branch 'mega' into cleanup/LoRaTTN_code_splitup 2023-02-17 12:53:24 +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 e44c62111d [LoRaTTN] Split up C018 source files
All was in a single .cpp file.
This was hard to read/maintain and probably resulted in code duplication in the binary as code would be compiled in-line by the compiler.
2023-01-23 10:19:55 +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 d038ce2e15 [Controllers] Reduce bin size by getting rid of extensive macros 2023-01-01 21:11:08 +01:00
TD-er 8fe63e47fd [Controller Queue] Reduce bin size by using inheritance 2022-12-31 01:15:47 +01:00
TD-er 58ca9f0b01 [RN2483] Forward declaration of functions 2022-08-28 01:00:35 +02:00
TD-er 9be410ad1f Merge branch 'mega' into bugfix/RN2483_lorawan 2022-07-27 23:07:30 +02:00
Ton Huisman 8474d47cb7 [Build] Remove TESTING tag from Stable plugins 2022-07-22 21:51:00 +02:00
TD-er 214aa04631 [LoRaWAN] describe how to reduce nr of OTAA joins 2022-07-21 01:18:55 +02:00
TD-er 78fc1ea4e7 [LoRaWAN] Make RX2 frequency configurable + allow write RN2483 commands 2022-07-19 12:55:37 +02:00
TD-er a4cb528a91 [LoRaWAN] Reduce build size + more sensible default settings. 2022-07-18 00:00:45 +02:00
TD-er c3e70db03b [ADC] Add charts to show the factory calibration 2022-07-05 01:24:04 +02:00
TD-er 84e282014e [Cleanup] Apply minor suggestions from PVS Studio 2022-06-27 12:11:27 +02:00
TD-er 2d581b79c7 [LoRaWAN TTN] Fix serial port selector on LoRaWAN TTN controller 2022-06-15 13:48:46 +02:00
TD-er 109a8f6989 [Cleanup] Small optimizations to reduce bin size 2022-06-11 11:49:02 +02:00
TD-er 71963c60e3 [Memory] Free allocated memory in Strings .clear() does not free it
See: https://github.com/esp8266/Arduino/issues/8485
2022-02-10 12:20:15 +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 812485a1bb [Cleanup] Change NULL to nullptr 2022-02-07 11:52:44 +01:00
TD-er 4a9d0bcaae [Cleanup] Use flash strings where needed or chars for single char string 2022-02-05 10:40:46 +01:00
TD-er 5f72c06718 [Cleanup] Replace empty string assignment with .clear() 2022-02-05 00:39:50 +01:00
TD-er d7ed47cec0 [INO to CPP] Fix missing forward declarations in C018.cpp 2022-01-31 12:42:31 +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