10000 Adds a setmode method for setting the WiFi mode. by Sweet-Peas · Pull Request #1439 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

Adds a setmode method for setting the WiFi mode. #1439

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

Closed
wants to merge 13 commits into from

Conversation

Sweet-Peas
Copy link

This patch adds a new setmode command so that the WiFi mode can be selected. Absolutely necessary of you want to do a scan for instance. Sorry for the mess in commits, I think my brain had a git meltdown just now.

/Pontus

@dpgeorge
Copy link
Member

This is already propossed in #1318. It's pending a (long standing) decision on the network API.

@danicampora
Copy link
Member

This is already propossed in #1318. It's pending a (long standing) decision on the network API.

@Sweet-Peas we are working on a new hardware API, and soon we will get to the network drivers. Check out what we have so far here: https://github.com/micropython/micropython/wiki/Hardware-API

And feel free to share your thoughts in #1430

@Sweet-Peas
Copy link
Author

Okay, I get it. I'll hold on and see what happens. This will live in our fork for now so people can use our module with mp. I'll chime on on the Hardware-API discussions as we are already working on I2C and SPI stuff for the ESP8266.

@dpgeorge
Copy link
Member

@Sweet-Peas I guess you don't have to ship hardware for a few months, and by then the API should be worked out.

I'll chime on on the Hardware-API discussions as we are already working on I2C and SPI stuff for the ESP8266.

Please do! It's important, because having a consistent API across different boards will help the MicroPython ecosystem and all the users. Concrete thing for you to do is check that the proposed API maps cleanly to the ESP8266 and tell us when/where it doesn't. Thanks!

@pfalcon
Copy link
Contributor
pfalcon commented Aug 29, 2015

#1318 was merged as being first in row, offering more functionality (get current mode), and being clean, single-commit patch. @Sweet-Peas : Please consider squashing individual commits for future changes. Another issue is that you submitted pull request against your master branch, which means any new commits you push there end up in PR, unrelated to original topic. There're few hinst how to best contribute patches at https://github.com/micropython/micropython/blob/master/CONTRIBUTING.md .

In the meantime, one thing your patch had and #1318 missed is error handling. It's nice low-hanging fruit to re-add (and easy way to practice PR submission), hope you can rebase and re-submit that part. Thanks!

@dpgeorge
Copy link
Member

This has been superseded by the functionality in 9e8396a and 1c43a0f.

@dpgeorge dpgeorge closed this Mar 10, 2016
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.

5 participants
0