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 mix discovery command for device discovery #1019

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lawik
Copy link
Contributor

@lawik lawik commented Oct 21, 2024

Uses :mndp library and delegates to mix mndp.discover. If we switch discovery method over time this means we can fairly easily switch without changing the command.

It requires MNDP to be running in your app and a matching change to mix nerves.new might be reasonable to include mndp.

Uses :mndp library and delegates to mix mndp.discover. If we switch
discovery method over time this means we can fairly easily switch
without changing the command.

It requires MNDP to be running in your app and a matching change to
mix nerves.new might be reasonable to include mndp.
@lawik
Copy link
Contributor Author

lawik commented Oct 21, 2024

I am not sure we are happy to put this in yet or if mndp needs some time to bake. I really like what it would bring in terms of dev convenience.

You run mix discover and get:

Screenshot_20241021_103654

This doesn't have the risk of collision with system implementations and general weirdness that we get with mDNS. Maybe we will find other weirdness? I don't know. But it seems rad.

@lawik
Copy link
Contributor Author

lawik commented Oct 21, 2024

nerves_bootstrap PR: nerves-project/nerves_bootstrap#332

@fhunleth
Copy link
Member

@lawik I really like MNDP, but I think I need to spend some time using this in anger before elevating it to Nerves core tooling. The good part is that everyone can use mix mndp.discover right now without any changes to Nerves.

@lawik
Copy link
Contributor Author

lawik commented Oct 21, 2024

Entirely fair. I'm fine with these PRs idling or being closed and we go in for it when it feels ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants