wifi

How do I get the current access point's MAC address/BSSID? [duplicate]

陌路散爱 提交于 2019-12-18 04:48:08
问题 This question already has an answer here : about stumbler (1 answer) Closed 4 years ago . My iPhone is connected to an access point through a WiFi connection. Does anybody now how I can retrieve this Access Point's MAC address with Objective-C? 回答1: Look here and then here 回答2: It works for me Add SystemConfiguration.framework import < SystemConfiguration/CaptiveNetwork.h> use the below method +(NSString *)currentWifiBSSID { NSString *bssid = nil; NSArray *ifs = (__bridge_transfer id

Configure OpenWrt to provide HTTP authentication [closed]

大憨熊 提交于 2019-12-18 04:19:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I need to configure an "Accton MR3201A" access point running OpenWrt. I want it to provide an open WiFi with an HTTP authentication webpage on which users must provide a username & password before being able to access the internet. Is there an existing package (http://downloads.openwrt.org/snapshots/trunk/ar71xx

Can WIFI direct and WIFI station work simultaneously?

烂漫一生 提交于 2019-12-17 22:40:33
问题 As far as I know, essentially WIFI direct is enabled by a soft AP. My question: can the underlying WIFI module work as a WIFI station and as a WIFI direct endpoint simultaneously? That means, we hope that the WIFI module can communicate with a mobile phone using WIFI direct, and at the same time connect to a router as a WIFI station. Is it possible? and how widely and strongly is this case supported in technology? 回答1: You can if your wifi driver supports multi-role . This feature, available

wait until wifi connected on android

匆匆过客 提交于 2019-12-17 22:20:29
问题 I have a small program that trying to connect to a wifi network. It enables the wifi on the device then if it's the first time that is connect to the certain networkss It loads the device wifi in order to select and add the password for connection. Until I add the password in order to connect the program should not be finished. How can I add something to wait until I get from the wifi manager that is connected? I try sleep but it freeze the application and am not getting the wifi pop up menu

iPhone active network type (2G, 3G, WiFi)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 22:12:34
问题 Does anyone know how to determine the active network type at the specific moment: 2G , 3G or WiFi . For example, at a specific moment there could be enabled 3G , but the used network type could be 2G . 回答1: The SCNetworkReachability interface can help you with that. Basically, you create a so-called reachability reference and then call SCNetworkReachabilityGetFlags on it to get information about the connection. The returned flags include kSCNetworkReachabilityFlagsIsWWAN , which tells you

How to check the network availability?

淺唱寂寞╮ 提交于 2019-12-17 19:55:57
问题 I have to connect my app with server using either wifi (if it is available), or gprs (if wifi is not available). Here is my code to check the connection availability public static final boolean isConnectionAvailable(Activity a) { ConnectivityManager cm = (ConnectivityManager)a.getSystemService(Context.CONNECTIVITY_SERVICE); State mobile = cm.getNetworkInfo(0).getState(); State wifi = cm.getNetworkInfo(1).getState(); if (wifi == NetworkInfo.State.CONNECTED || wifi == NetworkInfo.State

how to get wifi hotspot's location?

只谈情不闲聊 提交于 2019-12-17 19:54:29
问题 I want to write an application that it can record the wifi hotspot's location we are accessing and display them in map. But the problem is - how do I get wifi hotspot's location? I think I can use the wifi signal to get the wifi hotspot's location, but it may not be very accuracy at first time. And if there is no other solution, I could record the location of GPS when access wifi hotspot at the first time. 回答1: You'll not be able to find the hotspots location and you'll not be able to

Android WifiManager.addNetwork() returns -1

不问归期 提交于 2019-12-17 19:32:41
问题 I am writing an android app which will connect to a specific WPA access point, when connected, it will issue a http call. It will not save the network config. I have read almost every post on stack overflow on connecting to wifi network but can't find the answer which works for me. Here is the code I am using to connect.. WifiConfiguration wc = new WifiConfiguration(); wc.allowedAuthAlgorithms.clear(); wc.allowedGroupCiphers.clear(); wc.allowedPairwiseCiphers.clear(); wc.allowedProtocols

List All Wireless Networks Python for PC

早过忘川 提交于 2019-12-17 19:00:00
问题 I am trying to find out how I can list all of the available wireless networks in Python. I am using Windows 8.1. Is there a built-in function I can call, or through a library? Please kindly show me the code which prints the list. 回答1: You'll want the subprocess module and a windows command: import subprocess results = subprocess.check_output(["netsh", "wlan", "show", "network"]) A little extra to just get SSID's. results = results.decode("ascii") # needed in python 3 results = results.replace

How to get the connection strength of Wifi access points?

女生的网名这么多〃 提交于 2019-12-17 15:35:50
问题 I am building an application reading the signal strength of each available Wifi access point. I've written code like: wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); // Get WiFi status WifiInfo info = wifi.getConnectionInfo(); textStatus.append("\n\nWiFi Status: " + info.toString()); // List available networks List<WifiConfiguration> configs = wifi.getConfiguredNetworks(); However, I have two problems: In debugging, configs only contains one connection. However, I can see that