P1-Meter-ESP8266 icon indicating copy to clipboard operation
P1-Meter-ESP8266 copied to clipboard

ESP8266 NodeMCU Softserial error

Open HyperDevil opened this issue 5 years ago • 3 comments

Arduino IDE version: 1.8.10 Softserial version: 6.7.1

//14 = D5 on NodeMCU SoftwareSerial mySerial(14, -1, true, 128); // (RX, TX. inverted, buffer)

exit status 1 no matching function for call to 'SoftwareSerial::SoftwareSerial(int, int, bool, int)' also: Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:94:5: note: candidate expects 3 arguments, 4 provided

Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:90:5: note: candidate expects 0 arguments, 4 provided

Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\SoftwareSerial\src/SoftwareSerial.h:94:5: note: SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)

 SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false);

HyperDevil avatar Feb 18 '20 18:02 HyperDevil

It seems the library changed:

class SoftwareSerial : public Stream { public: SoftwareSerial(); /// Ctor to set defaults for pins. /// @param rxPin the GPIO pin used for RX /// @param txPin -1 for onewire protocol, GPIO pin used for twowire TX SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false); SoftwareSerial(const SoftwareSerial&) = delete; SoftwareSerial& operator= (const SoftwareSerial&) = delete; virtual ~SoftwareSerial();

HyperDevil avatar Feb 18 '20 18:02 HyperDevil

Arduino IDE version: 1.8.12 Softserial version: 6.8.1 https://github.com/plerup/espsoftwareserial) I'm encountering the same error message as documented in the first comment above but fail to locate any remedial action. Anyone available to advise how to proceed?

Bergerie avatar Apr 28 '20 11:04 Bergerie

Discussed and solution here

KrellPatch avatar May 11 '20 11:05 KrellPatch