Giter VIP home page Giter VIP logo

winsonlibrary's Issues

Compile error with Software Serial

Hi !
I can not compile the WCS SingleOutput_AC_current example in Arduino, it exits with this error, I tried downgrading ESP build environment and different SWserial libs, nothing will do..

Hope someone could help please :)

the ESP software serial was used in this try [https://github.com/plerup/espsoftwareserial/]

/home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:84:48: error: call of overloaded 'BasicUART(SoftwareSerial)' is ambiguous
   SoftwareSerial _serial = SoftwareSerial(-1,-1);
                                                ^
In file included from /home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:17,
                 from /home/jeez/Arduino/SingleOutput_AC_Current/SingleOutput_AC_Current.ino:1:
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:385:5: note: candidate: 'EspSoftwareSerial::BasicUART<GpioCapabilities>::BasicUART(int8_t, int8_t, bool) [with GpioCapabilities = EspSoftwareSerial::GpioCapabilities; int8_t = signed char]'
     BasicUART(int8_t rxPin, int8_t txPin = -1, bool invert = false) :
     ^~~~~~~~~
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:376:42: note: candidate: 'EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>::BasicUART(const EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>&)' <deleted>
 template< class GpioCapabilities > class BasicUART : public UARTBase {
                                          ^~~~~~~~~
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:376:42: note: candidate: 'EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>::BasicUART(EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>&&)' <deleted>
In file included from /home/jeez/Arduino/SingleOutput_AC_Current/SingleOutput_AC_Current.ino:1:
/home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:118:34: error: use of deleted function 'WSerial::WSerial(WSerial&&)'
   WSerial _serial = WSerial(-1,-1);
                                  ^
/home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:73:7: note: 'WSerial::WSerial(WSerial&&)' is implicitly deleted because the default definition would be ill-formed:
 class WSerial {
       ^~~~~~~
/home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:73:7: error: use of deleted function 'EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>::BasicUART(EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>&&)'
In file included from /home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:17,
                 from /home/jeez/Arduino/SingleOutput_AC_Current/SingleOutput_AC_Current.ino:1:
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:376:42: note: 'EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>::BasicUART(EspSoftwareSerial::BasicUART<EspSoftwareSerial::GpioCapabilities>&&)' is implicitly deleted because the default definition would be ill-formed:
 template< class GpioCapabilities > class BasicUART : public UARTBase {
                                          ^~~~~~~~~
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:376:42: error: use of deleted function 'EspSoftwareSerial::UARTBase::UARTBase(const EspSoftwareSerial::UARTBase&)'
In file included from /home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:17,
                 from /home/jeez/Arduino/SingleOutput_AC_Current/SingleOutput_AC_Current.ino:1:
/home/jeez/Arduino/libraries/EspSoftwareSerial/src/SoftwareSerial.h:169:5: note: declared here
     UARTBase(const UARTBase&) = delete;
     ^~~~~~~~
In file included from /home/jeez/Arduino/SingleOutput_AC_Current/SingleOutput_AC_Current.ino:1:
/home/jeez/Arduino/libraries/WinsonLib/src/WinsonLib.h:157:34: error: use of deleted function 'WSerial::WSerial(WSerial&&)'
  WSerial _serial = WSerial(-1, -1);
                                  ^

exit status 1

Compilation error: exit status 1```


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.