Skip to content
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

Add support for multiple powered winders on one network #8

Open
mwood77 opened this issue Feb 15, 2023 · 7 comments
Open

Add support for multiple powered winders on one network #8

mwood77 opened this issue Feb 15, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mwood77
Copy link
Owner

mwood77 commented Feb 15, 2023

There's a possibility more than one powered unit will be on the network. Therefore, each winder should search the network to discover if there are other active winders already on the network & available at http://winderoo.local.

If there are, it should try to find an 'available 'domain' on the network.

The code could be something like:

 // pseudo code..
 int domainNumber;     

 // winder exists
 if (PING winderoo.local (status code) == 200) {
    // find incremented mDNS address to use

    for (int i = 0; i < 10; i++) {
        if (PING winderoo[i].local (status code) != 200) {
             domainNumber = i;
             break;
        }
    }
    MDNS.begin("winderoo"+domainNumber);
 }
@mwood77 mwood77 added the enhancement New feature or request label Feb 15, 2023
@mwood77 mwood77 modified the milestones: v1.0, vNext Feb 15, 2023
@mwood77 mwood77 changed the title Reddit Feedback - Add support for multiple powered winders on one network Add support for multiple powered winders on one network Feb 20, 2023
@OMPEd
Copy link

OMPEd commented Apr 8, 2024

Also requesting this feature... Have 3 powered winders and all named winderoo.local. Would prefer option to configure DNS name during wifi setup. FWIW I tried a search/replace in the source code from winderoo.local -> winderoo2.local and built/deployed it but it didnt appear to do anything when I pushed it to the ESP32

@mwood77
Copy link
Owner Author

mwood77 commented Apr 8, 2024

You could try changing the name here on your N+1 winderoos, until I implement this.

This line sets the domain name, winderoo.local:

if (!MDNS.begin("winderoo"))

@OMPEd
Copy link

OMPEd commented Apr 8, 2024

You could try changing the name here on your N+1 winderoos, until I implement this.

This line sets the domain name, winderoo.local:

if (!MDNS.begin("winderoo"))

Thanks, that worked!

@mwood77
Copy link
Owner Author

mwood77 commented Apr 8, 2024

I've just finished adding in support for OLED screens (bit of a distraction), so I hope i'll be able to focus on this networking task soon.

@mwood77 mwood77 linked a pull request Apr 9, 2024 that will close this issue
@mwood77
Copy link
Owner Author

mwood77 commented Apr 30, 2024

Tracking branch #50

@mwood77 mwood77 self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants