Trying to compile the example from Module 11 – Unit 2, ESP32_Client_1_LED_DS18B20.ino, I found some problems.
First, I found several errors after following the instruccions to extract the needed libraries (Async MQTT Client Library, OneWire Library and DallasTemperature Library). In the all cases, in my Windows 10 system, using defaul values, after extracting the compressed download, there is a nested folder inside with the same name (for instance C:\Users\Javier\Downloads\async-mqtt-client-master\async-mqtt-client-master), I need to rename and move the second level folder to my C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client folder. This solved some compilation errors. I suggest to take scrren capture of the required libraries folder tree.
But even doing this I foun a compilation error:
In file included from C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client\src/AsyncMqttClient.h:4:0,
from C:\Users\Javier\Documents\Arduino\Curso_ESP32\ESP32_Client_1_LED_DS18B20\ESP32_Client_1_LED_DS18B20.ino:12:
C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client\src/AsyncMqttClient.hpp:9:22: fatal error: AsyncTCP.h: No such file or directory
compilation terminated.
Multiple libraries were found for “WiFi.h”
Used: C:\Users\Javier\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 1.0 in folder: C:\Users\Javier\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Using library async_mqtt_client at version 0.8.2 in folder: C:\Users\Javier\Documents\Arduino\libraries\async_mqtt_client
The required AsyncTCP.h isn’t presente in my PC. Where is located this file ? It owns to some other library that I need to install.
Thanks in advance
Javier
Hello Javier, I’m sorry for taking so long to get back to you, but I was on holidays and unfortunately I had very low bandwidth to properly answer questions.
It looks like you have a library missing and I’ll be updating the Unit, because I forgot to mention that it’s required to have the AsyncTCP library.
Can you also install this library in your Arduino IDE? https://github.com/me-no-dev/AsyncTCP
Thanks for your patience and let me know if installing that library solves your compilation problem.
Regards,
Rui
Thanks Rui,
I wish you have good holidays. Even with low bandwith 😛
I solve by myself, but doesn’t have the time to just write that this library is needed to work properly. Happy to found the solution, sorry not to share with other people.
Regards
Javier
Thank you and I’m already back from holidays!
Thanks for letting me know! I’ve already updated the course to include how to install that library, so others can avoid that problem.
Regards,
Rui
Rui,
May be I delete your last comment by mistake. Can you undelete it ?
Regards
Javier
Thanks Rui,
My mistake with the icon that looks like a checkmark or a like.
I have some sugestion about the course. Whats the the better way to write then? This forum?, Mail?
Regards
Javier
The checkmark highlights the comment, so you didn’t delete it, but it was moved to the top of the thread. The best way is to contact me is using the Forum to ask questions or give suggestions!
Thanks, you can post a new question/feedback here: https://rntlab.com/ask-question/