trouble installing a library

Hi,

I have been using the library with great success for a while now.

I have just reinstalled everything on my raspberry pi and i am having a problem.

The usual add zip library is reporting:

Invalid library found in /home/pi/Arduino/libraries/modbus-arduino-master: no headers files (.h) found in /home/pi/Arduino/libraries/modbus-arduino-master

I have had no problem with this in the past. Me and the plants in my garden are desperate for help.

I have manually installed the library folder and it appears along with all its folders/contents but it will not compile.

other libraries that i need in my project install okay but not this one.

Please help

Matt

Please post a link to where you downloaded the library from.

Hi pert,

This is the github page:

The Arduino IDE requires that libraries be installed directly under the libraries folder, not in a subfolder. The problem here is that andresarmento/modbus-arduino is a collection of libraries. So you have this structure:

/home/pi/Arduino
|_libraries
|_modbus-arduino
|_libraries
|_Modbus
|_ModbusIP
|_ModbusIP_ENC28J60
|_ModbusIP_ESP8266AT
|_ModbusSerial

Each of those folders under /home/pi/Arduino/libraries/modbus-arduino-master/libraries is an Arduino library, but the Arduino IDE will only recognize those libraries if they're located directly under /home/pi/Arduino/libraries. So you can fix this problem by moving all those folders up to /home/pi/Arduino/libraries and then deleting /home/pi/Arduino/libraries/modbus-arduino-master. The your folder structure will look like this:

/home/pi/Arduino
|_libraries
|_Modbus
|_ModbusIP
|_ModbusIP_ENC28J60
|_ModbusIP_ESP8266AT
|_ModbusSerial

Thank you!

All is well, namaste

You're welcome. I'm glad to hear it's working now. Enjoy!
Per