cmcgerty / Sofar2mqtt

A smart home interface for Sofar solar and battery inverters.
GNU General Public License v3.0
79 stars 45 forks source link

D6 was not declared in this scope #28

Open Cornhol10 opened 1 year ago

Cornhol10 commented 1 year ago

I'm getting the above error when I click upload. What have I done wrong?

tobydavies11 commented 1 year ago

Hello

Had similar issues, change the following to allow a successful compile.

simply replace ;

D5 with 14 D6 with 12 D7 with 13

include

//#define SERIAL_COMMUNICATION_CONTROL_PIN D5 // Transmission set pin

define SERIAL_COMMUNICATION_CONTROL_PIN 14 // Transmission set pin

define RS485_TX HIGH

define RS485_RX LOW

//#define RXPin D6 // Serial Receive pin //#define TXPin D7 // Serial Transmit pin

define RXPin 12 // Serial Receive pin

define TXPin 13 // Serial Transmit pin

SoftwareSerial RS485Serial(RXPin, TXPin);