-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi Ranger Extender / Repeater #12784
Conversation
There is already TasMesh what is the benefit of this solution against? |
@Jason2866 Good question :) - first reason: I didn't realize it was a thing, I'll have to look at it more closely. But after a quick look it appears to setup a custom network and requires an ESP32 as a gateway. This is a pure WiFi solution (that I have been using for a while now), to allow other devices (doesn't have to be Tasmota) to connect to the new AP, that's then routed to the core network. Aside from all the code for config, it's actually not a lot of code (but it does have a bit of overhead with NAPT enabled with the libraries it uses). As mentioned, this one also does not (yet) support ESP32 - but best I can tell once arduino-esp32 v2 is released and integrated into Tasmota, it should be easy to add. |
Sorry i did by mistake edit your comment :-( |
All good. |
@Jason2866 Thanks again for the pointer on the v2 arduino-esp32. Do you think it's likely that this concept would be accepted into Tasmota? I'm hitting a number of walls with the ESP32 implementation, so won't continue if it's unlikely to become part of Tasmota. It looks like support in bleeding edge in Arduino - or even not included at this stage (without doing a custom build of the esp-idf library). Spent a few hours on it and I'm about to go back to basics (ie: outside Tasmota) to try and get it going for the ESP32. Thanks! |
PS: Or would it be accepted as an ESP8266 only option? |
I could imagine, since Berry is ESP32 only. Tagged Theo for review. We will se what he is thinking |
Further to getting it going on ESP32 - I think we are going to need the following options in the esp32-arduino-lib:
I have not tested myself yet (it's getting late here and I've been doing too much reading), but I think that'll be the solution if everyone thinks it's worth it. :) Cheers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the code and as long as it stays within a single driver file it's OK with me. Considering the amount of memory used I think it won't be enabled in the current binary versions.
Also how many clients do you think an ESP8266 can handle? I suppose not many.
In the end adding another wifi router is probably a more productive solution.
I will add/change this settings
in my next Tasmota Arduino Esp32 framework build |
This are the available options:
I see no |
Okay, i read the IDF docs and just added the option. Let us see what the lib builder does.... |
Thanks! I should have mentioned I found the options by using the |
@arendst Thanks! I agree, I would not include this by default, but I'm trying to make it as easy to add as practical for those that do want it in their own builds. For my use case I have a several outdoor WiFi switches (the Sonoff S55), some of which are slightly underground. To connect them to my "core" network the WiFi base-station would need to be would be very exposed to the elements, but the another S55 (on a nearby fence post basically) is working well as a low-cost outdoor bridge. From my research so far, it's limited to about 8 clients on the ESP8266. |
Thank you @Jason2866! That worked! It all ended up far more complex than I was hoping as some of the interface/API's are significantly different to the ESP8266. I'm have just pushed that update with ESP32 support. Thanks again. |
Thx. Let me play with this and do some changes in regards to correct driver number and possibly persistance. Hold on. |
needed for PR arendst#12784
Needed framework for this PR is #12807 |
Support for wifi range extender in IDF 4.4 (needed for PR #12784)
Rewrote your extender to add persistence. I'm currently unable to test NAPT as it fails to compile. I'm sure you'll find a simple solution. Note most defines have changed to make them in line with used Tasmota defines. Pls open a new PR for any changes you'll suggest. |
Thanks! Even better getting persistent settings :) I'll start a PR now - I'll add in some more comments about why things are as they are in case I (or someone) needs to work on it in the future. I'll also start some formal documentation for it as well. For now, I'm commenting out the offending lines that are preventing the ESP32 compilation - hopefully they'll be fixed shortly (by Stephen from what VScode is telling me). Cheers! |
Description:
This provides a range extender/repeater for Tasmota. Based on the Range Extender example.
This does not work on ESP32 at this stage as support is not provided until the v2 libraries become stable and are included in Tasmota.
This still needs a driver ID allocated, and a proper page in the documentation. I wanted to start this PR to start the discussion around any other changes that maybe required.
Comments/doco to get started is provided at the top of the
.ino
file.Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass