Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software Serial Doesnt work for Modbus RTU #55

Open
Vihang-Patil opened this issue Nov 25, 2020 · 0 comments
Open

Software Serial Doesnt work for Modbus RTU #55

Vihang-Patil opened this issue Nov 25, 2020 · 0 comments

Comments

@Vihang-Patil
Copy link

Hello
I have been using this Modbus Serial Library for a while. For one of my project I need to use SoftwareSerial. But I am getting the following errors

libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Modbus()'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Modbus()'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::searchRegister(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addReg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Reg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Reg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addHreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Hreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Hreg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addCoil(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addIsts(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::addIreg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Coil(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ists(unsigned int, bool)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ireg(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Coil(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ists(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::Ireg(unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::exceptionResponse(unsigned char, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readRegisters(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeSingleRegister(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeMultipleRegisters(unsigned char*, unsigned int, unsigned int, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readCoils(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readInputStatus(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::readInputRegisters(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeSingleCoil(unsigned int, unsigned int)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::writeMultipleCoils(unsigned char*, unsigned int, unsigned int, unsigned char)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\Modbus\Modbus.cpp.o (symbol from plugin): In function Modbus::Modbus()': (.text+0x0): multiple definition of Modbus::receivePDU(unsigned char*)'
sketch\Modbus.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Modbus.h"
Used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\Modbus
Not used: C:\Users\pviha\OneDrive\Documents\Arduino\libraries\modbus-esp8266
exit status 1
Error compiling for board Arduino Nano.

Please guide

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant