EnviroDIY / Arduino-SDI-12

An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
https://github.com/EnviroDIY/Arduino-SDI-12/wiki
BSD 3-Clause "New" or "Revised" License
164 stars 100 forks source link

SDI12 with SoftwareSerial (Stopgap Fix not working) #99

Closed lolcocks123 closed 2 years ago

lolcocks123 commented 2 years ago

Hello,

I have been trying to get a lot of things to get working and it is really important to me that I get SoftwareSerial working with this SDI12 library.

I tried doing the Stopgap Fix:

SoftwareSerial.cpp: image

SDI12.cpp: image

However, after I restart and try to compile my code, I get the following error: libraries\SoftwareSerial\SoftwareSerial.cpp.o (symbol from plugin): In function 'SoftwareSerial::read()': (.text+0x0): multiple definition of '__vector_3' libraries\SDI-12\SDI12.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Uno.

Any help appreciated.

lolcocks123 commented 2 years ago

Oops.

Was editing the wrong SoftwareSerial.cpp. Should have edited the one in the %appdata% folder.

Also, SoftwareSerial.cpp seems to be a little different from the one in the guide but was able to use PCINT2 for SoftwareSerial.cpp and PCINT0 for SDI12.cpp.