Painlessmesh incompatible with ESP32 UWB

117 views
Skip to first unread message

Richard Smith

unread,
Jun 26, 2024, 2:01:44 AM6/26/24
to painlessmesh-user
Hi, I am trying to get painlessmesh to work with my ESP32 UWB (Board selected: ESP32 Dev Module in the IDE) and get a:
'class WiFiClass' has no member named 'setAutoConnect'; did you mean 'setAutoReconnect'?
when I try and compile. 

After some searching I found some edits to the WiFi.begin command in  painlessMeshSTA.cpp  and an edit to the wifi.hpp. That allowed it to compile, but would not connect to other devices.

Has anyone a solution for this? I Really like painlessmesh and would like to use it between some ESP32 UWB and a Arduino ESP32 Nano and a generic ESP8266, both of which work fine with painlessmesh 1.5.0.

Many thanks.

Carl Mal

unread,
Oct 23, 2024, 11:24:19 PM10/23/24
to painlessmesh-user
Hello!
Did you ever get past the line 49 WiFi.setAutoConnect error?  I am running into the same issue.
Arduino IDE v2.3.3
Board: Heltec WiFi LoRa 32(V3) //v3.0.2
#include "painlessMesh.h" //v1.5.0
#include <Arduino_JSON.h> //v0.2.0
Thanks

Carl Mal

unread,
Oct 23, 2024, 11:34:00 PM10/23/24
to painlessmesh-user
I forgot to mention, there is no problem when using the Wemos D1 Mini and the above mentioned libraries, so I expect it is related to the Heltec board library.
I will post on the Heltec forum as well and report back if I find out anything.
Regards

Carl Mal

unread,
Oct 24, 2024, 6:56:03 AM10/24/24
to painlessmesh-user
<SOLVED> Thank you Luca for your suggestion to install the develop version off the GIT.
The Arduino IDE Library Manager now indicates v1.5.3
We are back in business.

BlackEdder

unread,
Oct 24, 2024, 8:39:55 AM10/24/24
to painlessmesh-user
Just to clarify, does arduino not automatically install the latest version?

Carl Mal

unread,
Oct 24, 2024, 8:55:57 AM10/24/24
to painlessmesh-user
Correct, it does not. I had to get it here: https://gitlab.com/painlessMesh/painlessMesh
from the develop branch and replace the version in the Libraries directory manually.

Reply all
Reply to author
Forward
0 new messages