Skip to content

Commit

Permalink
EspSoftwareSerial 8.0.1: onReceive bug fix and new namespace (#8869)
Browse files Browse the repository at this point in the history
* Upcoming EspSoftwareSerial 7.0.1

* EspSoftwareSerial example: higher bitrates due to forcing half-duplex

* Adapt to SoftwareSerial's latest use of namespace.

* In EspSoftwareSerial, some renaming after review feedback.

* EspSoftwareSerial's use of a template class in order to permit users their own GPIO capabilities definitions.

* CI caught some warning.

* Stick to non-namespace EspSoftwareSerial class name for the moment.

* Delegate operator() is now nullptr-safe, good for use in ISRs.

* Pushed EspSoftwareSerial 8.0.1: Platformio picks up versions that aren't published in Github
  • Loading branch information
dok-net committed Mar 11, 2023
1 parent 6ad9bf3 commit 2303632
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
SWAP_PINS:
0: use Serial1 for logging (legacy example)
1: configure Hardware Serial port on RX:GPIO13 TX:GPIO15
and use SoftwareSerial for logging on
and use EspSoftwareSerial for logging on
standard Serial pins RX:GPIO3 and TX:GPIO1
*/

Expand Down Expand Up @@ -84,11 +84,11 @@ void setup() {
#if SWAP_PINS
Serial.swap();
// Hardware serial is now on RX:GPIO13 TX:GPIO15
// use SoftwareSerial on regular RX(3)/TX(1) for logging
// use EspSoftwareSerial on regular RX(3)/TX(1) for logging
logger = new SoftwareSerial(3, 1);
logger->begin(BAUD_LOGGER);
logger->enableIntTx(false);
logger->println("\n\nUsing SoftwareSerial for logging");
logger->println("\n\nUsing EspSoftwareSerial for logging");
#else
logger->begin(BAUD_LOGGER);
logger->println("\n\nUsing Serial1 for logging");
Expand Down
2 changes: 1 addition & 1 deletion libraries/esp8266/examples/SerialStress/SerialStress.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Serial read/write/verify/benchmark
Using internal loopback
Using SoftwareSerial library for logging
Using EspSoftwareSerial library for logging
Sketch meant for debugging only
Released to public domain
Expand Down

0 comments on commit 2303632

Please sign in to comment.