sanchosk / ZoeELM2MQTT

Translation tool from ELM bluetooth dongle connected to OBD2 port in the car to MQTT server for HomeAssistant
11 stars 3 forks source link

Challenges with Importing and Compiling Libraries in the Arduino IDE #7

Open paralorzas opened 2 months ago

paralorzas commented 2 months ago

First of all, congratulations on your code, as it is exactly what I was looking for. I just want to say that it is taking me many hours (I must be very clumsy) to add the libraries that the Arduino IDE is asking for. I have added the ones you indicated, but it keeps asking for more. Is there an easier way to import the project and compile it as is?

sanchosk commented 1 month ago

I have to admit I am using old arduino IDE that I am transferring from machine to machine for few years :( I will have to make a new version of the code, perhaps for platform.io that will get all the dependencies automatically. Perhaps next week I can find some time. Thanks for your patience.

Coeos3 commented 3 weeks ago

I have the same issue; after following the steps of the readme file for the board and scheme settings as well as the 3 libraries to install, I am still missing, at least, the following dependencies: WebServer.h Server.h (dependency of ArduinoOTA.h and WiFi.h) WebSocketsServer.h EEPROM.h BluetoothSerial.h

sanchosk commented 2 weeks ago

Well, I've spent quite some time trying to find the problem and I did in the end. The BluetoothSerial.h in newer version of ESP32 IDF no longer supports the legacy mode of pin setup. In order to make it work, you'll have to downgrade the board from 3.0.x back to 2.0.17 and restart Arduino IDE. With this board setup, the code compiles OK and works, otherwise you'll receive problems during compilation. Don't forget to set the partition scheme to Huge APP.

Sorry it took me so long - had some other things on my plate...

paralorzas commented 3 days ago

Well, I've spent quite some time trying to find the problem and I did in the end. The BluetoothSerial.h in newer version of ESP32 IDF no longer supports the legacy mode of pin setup. In order to make it work, you'll have to downgrade the board from 3.0.x back to 2.0.17 and restart Arduino IDE. With this board setup, the code compiles OK and works, otherwise you'll receive problems during compilation. Don't forget to set the partition scheme to Huge APP.

Thank you for sharing your solution! It’s great to hear that you found the issue with the BluetoothSerial.h and the ESP32 IDF version. Downgrading the board to 2.0.17 and adjusting the partition scheme to Huge APP makes sense as a workaround. I’ll make sure to try it out!

I'll keep you updated! Thanks