mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-12 09:36:59 +00:00
* [addLib] Added SoftwareSerial library Added latest version from: https://github.com/plerup/espsoftwareserial * [renLib] Renamed files to avoid conflicts with existing code * [renLib] Changed include according to rename * [renLib] Renamed all occurences and includes and removed unused pins Renamed to make sure all plugins use the 'new' ESPeasySoftwareSerial. Also added pinToIndex function to reduce memory footprint with about 150 Bytes, as described in issue #630 * [unused pins] Adjust indices in object list Forgot to change the indices in the object list of SoftwareSerial * Simple patch for timeouts As mentioned in this issue: https://github.com/plerup/espsoftwareserial/issues/54 * [SoftSerial] Set ObjList static Set the object list static to share all SoftwareSerial iRAM used as described in #630 * [revertLib] Revert to old version lib, since new version uses more iram Just to test with old version, originally available in 2.3.0 library, to see if memory usage improves. * [test] Reduce number of ports to 1 and lower buffer size to 18 for MHZ19 Just as a test, to see what happens to the iRAM usage, lower the number of concurrent softserial ports to 1. Also the default buffer size = 64 Bytes. The MH-Z19 sensor can do with less, since a response will be up to 9 bytes, a 18-byte buffer allows for 2 messages to be stored. * Enable usage of up to 10 concurrent softserial and reduce variable sizes Re-enable use of up to 10 concurrent software serials. Also reduce the variable sizes to smaller ranges. (e.g. uint8 instead of int) * [test] Limit number of concurrent software serial devices Earlier tests show the amount of iRAM used is somewhat related to the maximum number of allowed software serial ports. In this test it is set to 3 and they are assigned through first come first served a slot.
EspESPeasySoftwareSerial
Implementation of the Arduino software serial library for the ESP8266
Same functionality as the corresponding AVR library but several instances can be active at the same time. Speed up to 115200 baud is supported. The constructor also has an optional input buffer size.
Please note that due to the fact that the ESP always have other activities ongoing, there will be some inexactness in interrupt timings. This may lead to bit errors when having heavy data traffic in high baud rates.