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

Specify static ip when connecting to wifi #30

Open
slabua opened this issue Dec 25, 2022 · 0 comments
Open

Specify static ip when connecting to wifi #30

slabua opened this issue Dec 25, 2022 · 0 comments

Comments

@slabua
Copy link

slabua commented Dec 25, 2022

Previous to phew I used to create a secondary interface with

sta_if = network.WLAN(network.STA_IF)
sta_if.ifconfig((ip, mask, gw, dns))

then create a socket and bind to that ip.
Is it possible to achieve the same behaviour in phew?

In my use case, I connect to a mobile hotspot and I want the last octet of the ip to be manually specified.

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

1 participant