Commit Graph
35 Commits
Author SHA1 Message Date
Ton Huisman 97a49bdce6 [P080] Use UserVar setters/getters for changing and checking the value 2023-05-05 19:30:25 +02:00
Ton Huisman ad1e7e0527 [P080] Only send state-changes to controllers 2023-05-04 23:07:12 +02:00
Ton Huisman a5eb0967ab [P080] Add missing PLUGIN_READ function-handler, so the state is sent to controllers 2023-05-04 23:02:32 +02:00
TD-er ab95359c8f [TaskValueTypes] Rename old "Long" type to "ULong", which it actually is 2023-04-15 00:54:14 +02:00
Ton Huisman 5573108ef9 [INIT] Validate all plugins to return success = true when successful 2023-01-10 19:33:54 +01:00
TD-er adc3267067 [Speedup] Make less calls to LoadTaskSettings as it is slow on ESP32 2022-11-23 16:44:02 +01:00
TD-er 36bd508726 [Dallas] Fine tune timings for Dallas sensors
Due to the much faster switching of GPIO pins using direct access, it became apparent the timing of the 1Wire signal wasn't as perfect as demanded by the sensors.
This could lead to read errors which are not needed.
2022-08-02 17:31:26 +02:00
Ton Huisman 8474d47cb7 [Build] Remove TESTING tag from Stable plugins 2022-07-22 21:51:00 +02: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 1e8a434d40 [Cleanup] Check for validGpio using new function
Better to have a single function to check for valid GPIO pin instead of all kinds of checks like `!= -1` or `>= 0` or `> -1` etc.
2021-07-28 22:38:52 +02:00
TD-er 19979fd8b5 [Cleanup] Don't use "byte" as type anymore (.ino files) 2021-07-03 00:50:17 +02:00
TD-er 13a790ef43 [Logs] Format task values in logs with set nr of decimals
As reported here: https://github.com/letscontrolit/ESPEasy/pull/3439#issuecomment-758908074 by @tonhuisman
2021-01-13 10:47:46 +01:00
CurlyMoo 596d020a56 Support for Shelly 1 temp. addon 2020-12-01 20:04:10 +01:00
TD-er 4258b6f783 [Dallas] Support multiple temp sensors in 1 task for simultaneous reads 2020-11-11 23:52:07 +01:00
TD-er 17cb10ae0a [Dallas] Improve timings to comply with datasheet timings 2020-11-10 23:05:58 +01:00
TD-er 771cb859b6 [Dallas] Cleanup P004 DS18b20 plugin code 2020-11-10 12:23:16 +01:00
TD-er 010d6eb86f [Dallas] Move redundant code from P004, P080 and P100 to a Dallas helper 2020-11-10 02:07:32 +01:00
TD-er 8c0e586c68 [Cleanup] Make sure _Plugin_Helper.h is included before #ifdef USES_xxx (2) 2020-10-20 15:55:49 +02:00
TD-er 8e66154e2f Add function to ask task for VType instead of plugins
To allow a task to have a non-default VType, instead of shared among all instances of the same plugin.
2020-09-22 14:56:50 +02:00
Gijs Noorlander d664659df8 [Dallas] Add warning about the need for a pull up 2020-08-11 22:37:33 +02:00
Gijs Noorlander 6b344b3cde Uncrustify both Dallas plugins 2020-08-11 14:41:29 +02:00
Gijs Noorlander 5a75cd3904 [Dallas] Fix NoInterrupt calls for ESP32 2020-08-11 14:40:42 +02:00
Gijs Noorlander 534e9965e3 [Dallas iButton] Enable interrupts when no sensor found 2020-08-11 14:23:00 +02:00
Gijs Noorlander 3ef39ca6c1 [Webserver] Fix ambiguous function definitions for selectors
The form selectors were quite ambiguous, which could lead to build issues
2020-04-09 15:52:40 +02:00
Gijs Noorlander 1de135001b [Cleanup] Include _Plugin_Helper.h in all plugin INO files
This does include almost all needed for a plugin.
So it will make intellisense highlighting useful as otherwise almost each line in a plugin file will be marked red.
2020-03-03 16:42:07 +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 b410fc7bc1 Split Diagnostic.h & ESPEasyWiFiEvent.h into .h/.cpp 2019-09-25 00:46:04 +02:00
TD-er 2f56ba7606 [Plugins] Replace long settings names with clear macros
See the defines in `_Plugin_Helper.h`
They were already used in some plugins, but now made globally available since they make the source much more readable.
2019-01-08 14:54:26 +01:00
TD-er 26d7c95b6f [Cleanup] Uniform labels for GPIO pins
For all other plugins not setting the GPIO labels, all are now added.
Also reverted the decision about RX/TX, since these are the only ones to be crossed, the rest is always describing the data on the sensor side.
"GPIO <-- TX" is rather descriptive. The GPIO is on the ESP side, TX is on the sensor side.

So the function to format the label is called `formatGpioName_RX` and it will write "GPIO <- TX"
At least it is clear where it is going to be used, it is the RX channel on the ESP side. (for example SoftwareSerial describes the pins with function on ESP side)
2018-11-11 12:42:36 +01:00
TD-er d2644b2da7 [Cleanup] Do not use F-macro for short strings
Got rid of a few kB in the binary image by removing F-macro from numerous 1 or 2 character flash strings.
These very short strings take more space in flash and memory when using the F-macro.

Also appending to a string using a `'a'` character definition takes less resources compared to a one-character string `"a"`.
2018-11-04 01:27:42 +01:00
TD-er 1f1e47530a [Cleanup] Reduce length HTML form data IDs to reduce sketch size
To allow OTA again on 1MB flash units.
2018-10-31 12:08:17 +01:00
TD-er b8894efc57 [Build Travis] "Scratchpad was set but never used"
Build error with Travis.
2018-08-26 00:31:49 +02:00
TD-er 9d2fad783f [Build] Add "[TESTING]" labels to P078 and P080 2018-08-26 00:12:13 +02:00
TD-er a7d90a33a0 [Dallas iButton] Change VType to SENSOR_TYPE_LONG 2018-08-25 23:18:00 +02:00
TD-er 3a68ff8f9d [P080] Dallas iButton Rename P078 to P80 2018-08-25 22:51:43 +02:00