reaper7 / SDM_Energy_Meter

reading SDM72 SDM120 SDM220 SDM230 SDM630 modbus energy meters from arduino (esp8266, esp32, avr)
245 stars 97 forks source link

Error with arduino 2.4.2 #24

Closed helianto closed 6 years ago

helianto commented 6 years ago

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)'

reaper7 commented 6 years ago

how you activate hw serial?? it may be a similar problem with https://github.com/reaper7/SDM_Energy_Meter/issues/23#issuecomment-409142990

helianto commented 6 years ago

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