miguel5612 / MQSensorsLib

We present a unified library for MQ sensors, this library allows to read MQ signals easily from Arduino, Genuino, ESP8266, ESP-32 boards whose references are MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ136, MQ303A, MQ309A.
MIT License
169 stars 64 forks source link

Problems importing the header #36

Closed xevilstar closed 4 years ago

xevilstar commented 4 years ago

I really want and need to use this library and I thank you for all the effort you put into it.

I have imported the MQUnifiedsensor-2.0.1.zip

Downloaded the library, click on Sketch->Import Library->Add library Selected the zip file.

Sadly the Arduino ide doesn't like filenames and dir names containing the char "-" So I had to rename every and each directory name and every and each file name in each directory removing the character "-" and then I re-zipped the whole dir

(is it possible to have a zip with the "-" already removed from all the filenames and directory names and from the zip name itself ? please ?)

After I did that it imported fine.

I am sure this is by my mistake (read pebkac), that said once I tried to use the library the following happens:

MQBoard.ino:22:29: fatal error: MQUnifiedsensor.h: No such file or directory
compilation terminated.

As you can see the header has been imported (I suspect it is in the wrong place)

root@raspberrypi:~# locate MQUnifiedsensor.h
/home/pi/Downloads/MQUnifiedsensor/src/MQUnifiedsensor.h
/home/pi/sketchbook/libraries/MQUnifiedsensor/src/MQUnifiedsensor.h
root@raspberrypi:~# 

arduino ide version 2:1.0.5+df2-4.1

Please help :) Thanks

xevilstar commented 4 years ago

this was valid for the debian version of the arduino ide (1.5.x) installing the 1.8.13 solved the problem