Setting up mobile Wifi Connection

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Setting up mobile Wifi Connection

Post by simon.schvartzman » Thu Jan 06, 2022 12:54 pm

Hi guys, given I know the Wifi credentials (SSID and PW) I want to connect to, can I do it under LC control? Meaning without having to manually do it via the OS?

In order to minimize as much as possible user's clicks the goal is to have the APP automatically connect to the preferred Wifi network no matter how many networks are available...

Suggestions are very welcomed!

Thanks
Simon
________________________________________
To ";" or not to ";" that is the question

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Setting up mobile Wifi Connection

Post by trevix » Sun Jan 23, 2022 12:27 pm

For what i can see, on iOS there are only 2 lines of C code:

Code: Select all

var config = new NEHotspotConfiguration(Ssid, Pw, false);
config.JoinOnce = false;
https://stackoverflow.com/questions/363 ... d-password
If only LCB was be a little more easy to understand...
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “Talking LiveCode”