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

Allow connecting to devices via device name #69

Open
BrianGenisio opened this issue Dec 8, 2015 · 2 comments
Open

Allow connecting to devices via device name #69

BrianGenisio opened this issue Dec 8, 2015 · 2 comments

Comments

@BrianGenisio
Copy link
Contributor

This is mostly for convenience, but also for use in a lab setting where the devices are already provisioned and named. In our case, the chips will have the names on a sticker, so doing something like this would be nice:

var board = new five.Board({
  io: new Particle({
    token: 'MY_TOKEN',
    deviceName: 'downton_abbey' 
  })
});

At connection time, we'd query the devices on the given API token, find the device by name, and get the ID that way.

Thoughts? Objections? I'll probably pair that with a PR for allowing direct connections when you know the IP address: #67

@rwaldron
Copy link
Owner

rwaldron commented Dec 8, 2015

Seems like a fine idea—as long as the current behaviour is unchanged.

@BrianGenisio
Copy link
Contributor Author

Of course.

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

No branches or pull requests

2 participants