reaper7 / SDM_Energy_Meter

reading SDM72 SDM120 SDM220 SDM230 SDM630 modbus energy meters from arduino (esp8266, esp32, avr)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with arduino 2.4.2

helianto opened this issue · comments

It seems that this version have their own version of software serial, and if I activate hardware serial, there is one error:

in line:
SDM sdm(Serial, 4800, NOT_A_PIN, SERIAL_8N1, false)

Se encontraron múltiples librerías para "SoftwareSerial.h"
Usado: C:\Users\javier\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\SoftwareSerial
No usado: C:\Users\javier\Documents\Arduino\libraries\espsoftwareserial-master
exit status 1
no matching function for call to 'SDM::SDM(HardwareSerial&, int, int, SerialConfig, bool)'

how you activate hw serial??
it may be a similar problem with #23 (comment)

Yes, i had placed #define USE_HARDWARESERIAL into ino file.... so now is solved...