Detect If WiFi Is Enabled or not

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Gurgen
Posts: 34
Joined: Thu Dec 10, 2015 2:09 pm

Detect If WiFi Is Enabled or not

Post by Gurgen » Mon May 30, 2016 3:30 pm

Hi Livecode community!

I want to know if there are some ways to find out the device is connected to WiFi network or not?

Thanks fo r advance.
Gurgen

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Detect If WiFi Is Enabled or not

Post by Mikey » Tue May 31, 2016 2:22 pm

One way would be to ping 8.8.8.8. You could also send out an http request and see what comes back.

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Detect If WiFi Is Enabled or not

Post by sphere » Sat Jun 11, 2016 2:35 pm

YEp whatt Mikey says.
you'd better do a search on the forum, this is asked before.
Best way is to open an url like google, and if you get a positiv result you wifi is connected.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10050
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Detect If WiFi Is Enabled or not

Post by FourthWorld » Sat Jun 11, 2016 6:13 pm

Does filtering the Dictionary for "connect" bring up anything useful?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply