-
Notifications
You must be signed in to change notification settings - Fork 32
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
[RFC] Expose Tessel network utilities #129
Comments
What happens if |
Hmmm I suppose it would connect to that new network and return a new wifi object, then invalidate any old wifi objects. I think having that returned object to pass around will be easier to understand, as opposed to: var tessel = require('tessel')
tessel.network.wifi(creds); // automatically connects to this network
tessel.network.wifi.off(); // turns the last connected network off. |
@HipsterBrown what do you think of the WiFi API we have for Tessel 1? It doesn't have any access point option so we'd have to add that. |
@johnnyman727 I was not aware of that API but it looks great to me, especially since it existed with Tessel 1 it would be nice to continue support within the |
👍 Yeah, I forgot about this API so I'm glad you brought it up. |
I also forgot about that API—thanks for the refresher @johnnyman727 |
@HipsterBrown do you think this will be ready for our next milestone tomorrow? Are you blocked by anything? |
@johnnyman727 It won't be ready tomorrow. Not blocked by anything, just haven't had a bunch of time to work on it. I can have it by the next release though now that I have some feedback on the initial WIP API. |
👍 Will move it to the next milestone. |
At the moment, the quickest way to connect to a wifi network or start an access point is through the command line interface,
t2-cli
. It would be cool to expose this functionality through thetessel
module for controlling network operations programatically.Example:
Use Case:
If a developer wanted to create an access point based on user interaction, like pressing the button on the Tessel. Then a user could toggle that access point every time they press the button.
When mesh networking is available, that could also be exposed through this
tessel.network
object/class for dynamically creating mesh nodes and connections.Any feedback is helpful. I can work on a PR if there is a general approval.
The text was updated successfully, but these errors were encountered: