Open vudinhhung88 opened 2 years ago
Hello, I try to run this project with an ESP-12e and get this error. How to fix it? Sorry if my question is too stupid, i'm newbie.
printserver:47:56: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)' 47 | SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32); | ^ In file included from C:\Users\vudin\OneDrive\Desktop\ESP\printserver-esp8266-master\printserver\printserver.ino:21: C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate: 'SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)' 93 | SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate: 'SoftwareSerial::SoftwareSerial()' 89 | SoftwareSerial(); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided exit status 1 no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)'
See issue #26.
Hello, I try to run this project with an ESP-12e and get this error. How to fix it? Sorry if my question is too stupid, i'm newbie.
printserver:47:56: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)' 47 | SoftwareSerial ch375swSer(CH375_RX, CH375_TX, false, 32); | ^ In file included from C:\Users\vudin\OneDrive\Desktop\ESP\printserver-esp8266-master\printserver\printserver.ino:21: C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate: 'SoftwareSerial::SoftwareSerial(int8_t, int8_t, bool)' 93 | SoftwareSerial(int8_t rxPin, int8_t txPin = -1, bool invert = false); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:93:5: note: candidate expects 3 arguments, 4 provided C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate: 'SoftwareSerial::SoftwareSerial()' 89 | SoftwareSerial(); | ^~~~~~~~~~~~~~ C:\Users\vudin\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\SoftwareSerial\src/SoftwareSerial.h:89:5: note: candidate expects 0 arguments, 4 provided exit status 1 no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&, bool, int)'