I have 5 WLED installations on my bicycle (front wheel, frame, back wheel, backpack, and helmet) and based on experience and research found that they all will not communicate together (bike frame WLED ESP32 acting as AP) due to the apparent default Max number of Wi-Fi connections set in the Arudino library of only 4. I would like to increase the max Wi-Fi connections to 6 so I can also connect my phone. Can anyone guide me on how to compile a custom binary with that change either via Plaformio or GitHub workflow?
I’ve not tried this. But I looks like the info your after.
Thanks. I saw that and thought that was more so if compiling via Arduino IDE. Obviously, I don’t have any experience in PlatformIO or GitHub workflows to know where to find it there and how to implement.
There is a good Wiki page on compiling Wled: Compiling WLED - WLED Project
That should help.
Then it just a matter of looking for that file to edit in the source code.
The source code is available here: Releases · Aircoookie/WLED · GitHub
I can’t find a WiFiAP.h file in the source code ZIP.
hmmm.
I cant seem to see that file in the source ether.
Like I said before, “I’ve not tried this”. So sorry for the miss lead.
Maybe ask the folks I the other thread what the heck there talking about.
Because, now I’ve no idea what they were talking about.
Having not liking the feeling of being defeated. I’ve looked for that file else where. And have found it.
The file is part of the arduino-esp32 library. And on my system I located it at "C:\Users\MY_USER_NAME\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src
Hope this helps.
I think we are getting closer.
That looks like the library folder for Arduino IDE though. Do you have it installed?
Based on the Plaformio.ini file, I see linkage to the arduino-esp32 library and see the WifiAP.h within the zip file. Just have to figure out how VSC/PlatformIO downloads, stores, and using it within the builds so that I can modify. I guess I could fork it on GitHub, modify the code, and change the linkage to my fork, but I’m sure there is an easier way.
[esp32]
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
platform = espressif32@3.5.0
platform_packages = framework-arduinoespressif32 @ GitHub - Aircoookie/arduino-esp32: Arduino core for the ESP32
Darn.
Yes that is from Arduino IDE.
I don’t know / not sure, but there must be a way to have the library stored locally, possibly within the Wled directory.
perhaps the “include” or “lib” directory. In those directory’s there are readme’s that might have some clues to add a custom library.
I’m just a weekend hobbyist / programing neophyte.So take it with a grain of salt.
edit:
I got curious and did a google search for “platformio local library” and it came up with good info on how to do it. Might be worth a try.
Jackpot! Thanks for guiding the way, @akriss .
I was able to connect my front wheel, bike frame, rear wheel, helmet, backpack and phone through the bike frame running my custom compiled version ESP32_4MB_S.
So yeah, I forked a copy of framework-arduinoespressif32 v1.6.5 from Aircookie’s GitHub and edited WifiAP.h from max connections = 4 to 8. I then pointed the "platform_packages = framework-arduinoespressif32 @ " to my GitHub repository. It looks like PlatformIO pulled it down during the build process.
Looks like I could have also just unzipped the folder onto my computer and pointed the platform_packages to my local folder via something like “symlink://C:/Users/user/arduino-esp32”
Now that I figured out how to start custom compiling my bins, I have been trying to figure out all the #defines that I can change.
Hi, I have an ESP32-C3-WROOM-02U and I’m trying to connect 13 different WLED installation to a main one, I followed all instruction from previous @Piff posts but still doesn’t work.
In platformio.ini I pointed the platform_packages under [esp32] to my custom github repository and I was able to compile and upload the firmware to the esp; but when I reach 4 different connection the esp refuses any additional.
Do you have any suggestions?
Hi. To make sure it is pulling from your github, change the url to something like notthegithub.com/xxxxx and to make sure the compile fails.
Does the ESP32 how enough power to support 13 connections?
This is mine. Feel free to use it, but it was only set to 8.
platform_packages = framework-arduinoespressif32 @ https://github.com/IMAsIeep/arduino-esp32/archive/refs/heads/arduino-esp32-more.zip
; GitHub - Aircoookie/arduino-esp32: Arduino core for the ESP32
Just thinking out loud.
Maybe have three main units and have each manage up to 6 connections?
ch 1 MAIN
ch 6 MAIN2
ch 11 MAIN3
Have MAIN2 and MAIN3 connect to MAIN1 but also broadcast MAIN2 and MAIN3
Then use your other 10 to connect a combo of MAIN, MAIN2, and MAIN3?
Thank you @Piff for the fast response.
I think my code doesn’t pull from github, also if i remove the link to the repository, the code still compile… Do you have any idea what the reason might be?
I dont’t know if the ESP32 can support 13 connections, but for now I would even be satisfied with 6 connections.
Your idea about using 3 main units with different channels is great, but i don’t know how to setup it… I’ll try to understand it.
I also tried the solution proposed by @jack1999 but i can’t find the anywhere “wled00.h” and neither #define MAX_CLIENTS.
Jack is a spam bot, likely pulling info vie AI. They made garbage posts all over the forums with obscure links. Disregard them.
Thanks Jinx. I thought I have found that way when I first started researching and it didn’t work for me. The one that I published worked for me.
VSCode still compile the code without pulling from github and i can’t figure out why, does anybody have any suggestions?
Did you compile for the first time in that folder before making the changes? Maybe since it already downloaded before it will not download again? Perhaps creating a new project or you would have to find that folder within your current project and delete it in order to repull it down? Just guessing here.
You may want to explore ESP-NOW sync available as a PR (or in separate branch) for WLED.
I tried multiple times, but no matter what I do, I still can’t have more than 4 connections.
I would like to try esp-now sync but I really don’t understand how to set it up.
Is there a guide on how esp-now sync works and how should I set it up?