Forum Archive

Can Pythonista change settings such as choosing wifi network ?

jrowling

Hi everyone,
I'm wondering whether to purchase the app - I"m looking for a way to control which wifi network my iPhone joins in different circumstances. I know enough python to be dangerous, so I'd be happy to teach myself what I need to achieve the effect I need.

Can the app (or a script) trigger joining a network and can the script poll which networks are available ? Can it see what bluetooth devices are available etc ?

Thanks for any help, and please do tell me if there is a better place to ask this question ?

Webmaster4o

Bluetooth support is implemented. However, iOS apps are not allowed to access wi-fi settings. The general rule, though, is that if iOS can do it (without any kind of special entitlements) then Pythonista can do it. If a normal iOS app can't access network settings, then nor can Pythonista.

There might be private APIs, though ¯_(ツ)_/¯

wreichard

Don't I wish!

ETA: But you should buy the app anyway. It and Editorial together make iOS pretty close to what I wish it was.

ccc

https://forum.omz-software.com/topic/3054/wireless-network-discovery

jrowling

OK - thanks for your help - would still be interested in seeing what it could do - is there a good newbie tutorial ?

Webmaster4o

@jrowling The built-in documentation isn't bad. Also, if you already know another programming language well, the official Python language reference is an awesome place to start.