espSoftwareSerial error

I am using arduino this morning, I have error like this :
In file included from C:\Users\A416EPO\Documents\Arduino\IoT Project\IoT Project.ino:10:0:
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:226:20: error: enclosing class of constexpr non-static member function 'bool SoftwareSerial::isValidGPIOpin(int8_t) const' is not a literal type
constexpr bool isValidGPIOpin(int8_t pin) const;
^
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:87:7: note: 'SoftwareSerial' is not literal because:
class SoftwareSerial : public Stream {
^
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:87:7: note: 'SoftwareSerial' has a non-trivial destructor
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:227:20: error: enclosing class of constexpr non-static member function 'bool SoftwareSerial::isValidRxGPIOpin(int8_t) const' is not a literal type
constexpr bool isValidRxGPIOpin(int8_t pin) const;
^
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:228:20: error: enclosing class of constexpr non-static member function 'bool SoftwareSerial::isValidTxGPIOpin(int8_t) const' is not a literal type
constexpr bool isValidTxGPIOpin(int8_t pin) const;
^
c:\Users\A416EPO\Documents\Arduino\libraries\EspSoftwareSerial\src/SoftwareSerial.h:230:20: error: enclosing class of constexpr non-static member function 'bool SoftwareSerial::hasRxGPIOPullUp(int8_t) const' is not a literal type
constexpr bool hasRxGPIOPullUp(int8_t pin) const;
^

exit status 1

Compilation error: exit status 1

I dont know why. I have uninstalled espsoftware serial and than I install again.

but I find same problem.

I dont know why

I home people can help me

thank you

Share the code that causes the error please

Do you have an ESP board selected as the target?

yes, I dont know why. Try to down grade the version from 6.17.1 to 6.12
this is work. I dont know this problem. I use the 7.0.0 for one month before.
but, last week, I have the problem like the post.

Post your code so we can try in our environment.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.