wifi

Android - connect to known hidden Wi-Fi network

旧城冷巷雨未停 提交于 2019-12-04 09:06:32
I need to connect to hidden Wi-Fi network programmatically. I know it's SSID, security type and password. For some reason I can't connect it. I can connect to the same network if it's not hidden. Here's my code: // configure the network private void saveWPANetwork(WiFiNetwork network){ WifiConfiguration conf = new WifiConfiguration(); conf.SSID =network.getSSID(); conf.hiddenSSID = true; conf.status = WifiConfiguration.Status.ENABLED; conf.preSharedKey =network.getPassword(); conf.priority = 9999; wifi.addNetwork(conf); wifi.saveConfiguration(); } // connect it protected boolean

How to make connection over WiFi when working with Gamekit?

我的未来我决定 提交于 2019-12-04 08:59:59
I want to make connection between two devices over WiFi using GameKit. Apple's documentation says If an Internet connection is chosen, your application must dismiss the peer picker dialog and present its own user interface to complete the connection. This is what i do - (void)peerPickerController:(GKPeerPickerController *)picker didSelectConnectionType:(GKPeerPickerConnectionType)type { if (type == GKPeerPickerConnectionTypeOnline) { picker.delegate = nil; [picker dismiss]; [picker autorelease]; [alert setTitle:@"\n\n\n"]; [alert setMessage:@"Looking for other iPads, iPhones or iPod touches...

Phone doesn't send all stored ssids while capturing Wi-Fi probe wequests

你。 提交于 2019-12-04 08:15:50
I build a script with scapy to capture probe requests in a monitornig wi-fi interface. I successfully capture the requests, and some of the SSIDs contained in them. But most of the networks stored in the phone don't get broadcasted. And there isn't a clear pattern of why this happens. Some phones don't broadcast ssids at all. I'm trying to find an explanation for the reasoning behind this behaviour, but haven't found any, apart that the hidden networks should be broadcasted in order for the phone to connect to them, but even that is not true, and most of the broadcasted ones are visible.

Measuring Signal Strength from wifi to Iphone/Ipad

被刻印的时光 ゝ 提交于 2019-12-04 08:02:36
I want to get the current Wifi signal strength from an iOS device. A Google search reveals only solutions for Android devices. From the literature I gather that Apple does not allow to access hardware and so nobody can retrieve the device's signal strength in dbm through their app. Is this correct? NSPekka As you say, there is no way to do this as Apple doesn't allow apps access to the necessary hardware. (There seems to have been a way to do it in iOS 5 but only using private APIs.) What you can do - and what, according to this article , some apps are doing - is measure network throughput

Share Wifi credentials via NFC tag without special apps

只愿长相守 提交于 2019-12-04 07:48:41
问题 I am looking for a way to create a NFC-tag that shares the wifi credentials of my network without my guests having to have any special NFC apps on their phone (other than whats coming with the phone). I have been looking at apps and services like NFC Tag Writer, WifiTap, NFC Task Launcher and NFCLabels.com, but it seems to me like it I would need to have the apps on the guest mobile as well to be able to use it, but I am not able to test it as I only have one NFC-enabled phone available. (Yes

Is there a good framework/sdk on wifi positioning with c#? [closed]

狂风中的少年 提交于 2019-12-04 07:44:55
I'm just searching a framework for wifi positioning in c#. actually i found nearly everything that i need for a robot project in form of a framework. even primitive object recoginition!!! now i wonder if some of you know if there is one, or whether i have to do it by myself. So finally if someone is also searching for this kind of software. I created it: http://code.google.com/p/wifi-positioner/ There is a .Net wrapper for the Skyhook API here , but it looks a little 'basic' 来源: https://stackoverflow.com/questions/4323165/is-there-a-good-framework-sdk-on-wifi-positioning-with-c

how can i connect to a password proctected wifi named as “A”

时光毁灭记忆、已成空白 提交于 2019-12-04 06:04:24
问题 How can connect to a specific wifi which is password protected? Scenario: There are four wifi networks but my app needs to connect to specific one whilst providing a password. 回答1: You can't there is no public API to do this. 回答2: You have to manually select a wifi network from the settings. 来源: https://stackoverflow.com/questions/8213862/how-can-i-connect-to-a-password-proctected-wifi-named-as-a

Is there a way to detect what kind of connection I'm using ? WiFi, 3G or Ethernet?

点点圈 提交于 2019-12-04 05:56:36
I'm trying to detect what kind of network connection I'm connected to. is it WiFi or 3G? is there a way to do that using c# win forms .net 2.0 or 4.0 ? foreach (NetworkInterface adapter in adapters) { if (adapter.OperationalStatus == OperationalStatus.Up) { if (adapter.NetworkInterfaceType == NetworkInterfaceType.Wireless80211) { lblNetworkType.Text = "you are using WiFi"; break; } else if (adapter.NetworkInterfaceType == NetworkInterfaceType.Ppp) { lblNetworkType.Text = "you are using 3G or ADSL or Dialup"; break; } else if (adapter.NetworkInterfaceType == NetworkInterfaceType.Ethernet) {

Accessing 802.11 Wireless Management Frames from Python

删除回忆录丶 提交于 2019-12-04 05:48:11
From Python on Linux I would like to sniff 802.11 management 'probe-request' frames. This is possible from Scapy like so: # -*- coding: utf-8 -*- from scapy.all import * def proc(p): if ( p.haslayer(Dot11ProbeReq) ): mac=re.sub(':','',p.addr2) ssid=p[Dot11Elt].info ssid=ssid.decode('utf-8','ignore') if ssid == "": ssid="<BROADCAST>" print "%s:%s" %(mac,ssid) sniff(iface="mon0",prn=proc) Or from tshark like so: tshark -n -i mon0 subtype probereq -R 'wlan.fc.type_subtype eq 4' -T fields -e wlan.sa -e wlan_mgt.ssid We could redirect the output from tshark, and slurp it up with some Python (not

iOS Swift connect WiFi programmatically and distinguish between bad password and no WiFi in range

别等时光非礼了梦想. 提交于 2019-12-04 05:45:23
NEHotspotConfiguration works well, but the error is nil both when the SSID I am trying to connect to is not available (out of range or off) or when the password I've submitted is incorrect. What am I doing wrong? I want to be able to distinguish between these two scenarios so I can inform the user accordingly. Code snippet: func connect(ssid: String, password: String, completionHandler: @escaping(Bool?, String?) -> Void) { activityIndicatorView?.startAnimating() guard !isAlreadyConnected(ssid: ssid) else { activityIndicatorView?.stopAnimating() completionHandler(true, nil) return; } let