aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
730 stars 128 forks source link

Compile Error - Software Serial - use of deleted function #64

Closed FritzTheCatfish closed 5 years ago

FritzTheCatfish commented 5 years ago

This is the Error:

HASwitchPlate-master\Arduino_Sketch\HASwitchPlate\HASwitchPlate.ino:

In function 'void debugPrintln(String)':

HASwitchPlate:2506:54: error: use of deleted function 'SoftwareSerial::SoftwareSerial(const SoftwareSerial&)'

 SoftwareSerial debugSerial = SoftwareSerial(17, 1); // 17==nc for RX, 1==TX pin

                                                  ^

Environment is: Windows 10 Arduino 1.8.9 (Windows Store 1.8.21.0)

Libraries: Esp8266 2.5.2 ArduinoJson 5.13.5 MQTT 2.4.3 WifiManager 0.14.0

No modifications were made to the file. Any suggestions?

FritzTheCatfish commented 5 years ago

BTW what esp8266 version was used? If I change version i.e. 2.5.0 I get an MDNS error

aderusha commented 5 years ago

Fix is sorted out and coming in 0.38

aderusha commented 5 years ago

HASP v0.38 has been published which resolves this issue. HASP now uses the latest version of ArduinoJSON 6.x, and the Arduino build instructions have been updated to match.