wifi

How to get BSSID of all wifi access points?

为君一笑 提交于 2019-11-29 12:06:59
问题 I need to get BSSID(MAC) of all AP's. Please find below code block. List<WifiConfiguration> test = wifiManager.getConfiguredNetworks(); for(int k=0;k<test.size();k++){ Log.d("acheck", "test BSSID = "+test.get(k).BSSID); Log.d("acheck", "test BSSID = "+test.get(k).BSSID); } But above code block returns SSID properly but null for BSSID. I want to connect to strongest access point with user defined SSID. Is there any API method available to get best signal strength's AP with user defined SSID.

For UDP broadcast gurus: Problems achieving high-bandwidth audio UDP broadcast over WiFi (802.11N and 802.11G)

假装没事ソ 提交于 2019-11-29 09:54:50
问题 I'm attempting to send multichannel audio over WiFi from one server to multiple client computers using UDP broadcast on a private network. I'm using software called Pure Data, with a UDP broadcast tool called netsend~ and netreceive~. The code is here: http://www.remu.fr/sound-delta/netsend~/ To cut a long story short, I'm able to achieve sending 9 channels to one client computer in a point-to-point network, but when I try to do broadcast to 2 clients (haven't yet tried more), I get no sound.

How can I enable and disable WiFi connectivity with a jailbroken iOS device?

三世轮回 提交于 2019-11-29 08:53:53
How can I programmatically enable and disable WiFi connectivity with a jailbroken iOS device? creker void SetWiFiMode(BOOL mode) { void* manager = WiFiManagerClientCreate(kCFAllocatorDefault, nil); if (mode) { WiFiManagerClientSetProperty(manager, CFSTR("AllowEnable"), kCFBooleanTrue); } else { WiFiManagerClientSetProperty(manager, CFSTR("AllowEnable"), kCFBooleanFalse); } CFRelease(manager); } To use this your application entitlements should have com.apple.wifi.manager-access key with boolean value set to true. All functions can be found in private MobileWiFi.framework There isn't a way using

Maintaining communication between Arduino and Java program

微笑、不失礼 提交于 2019-11-29 08:24:32
I have gotten a project in school that consists of a RC car that gets controlled over WiFi. It works just fine for a few seconds, but then it just stops the connection and tries to reconnect again. Thing is that if i'm making a car that relies on that unstable connection, it can cause accidents. Either to itself or a person. Perhaps i'm doing something wrong? My question is, how do i keep that connection active at all times? Here is my program so far: Arduino Client: #include <SPI.h> #include <WiFi.h> int status = WL_IDLE_STATUS; char ssid[] = "mynet"; char pass[] = "password"; IPAddress

Indoor navigation hardware/software requirements for iOS

China☆狼群 提交于 2019-11-29 08:12:40
I'm developing navigation system for my university as some kind of research activity. I'm using SVGKit to display floor plans. And now I need to provide user locationing service for navigation and tracking. So here's my questions: 1) Do I need some special hardware installed in university (Cisco MSE for example, or some cheaper analogues), or I can apply some software/technologies to our current hardware for server-side user location determining? If I do, what equipment do I need for it? I mean, it would be one unit for the whole university, or one per each floor, or what? 2) Q: Why doesn't

Can't connect to Android via ADB over wifi - Do I need root access?

梦想的初衷 提交于 2019-11-29 07:53:40
问题 I'm basically trying to do this: How can I connect to Android with ADB over TCP? with the Droid X2. I have USB Debugging on, and my phone is plugged in via USB. The IP Address is 10.0.78.33 (I have verified that I can do TCP communication to the phone on that IP, and I can ping it). I go to the command line and do the following: >>adb tcpip 5555 restarting in TCP mode port: 5555 >>adb connect 10.0.78.33:5555 unable to connect to 10.0.78.33:5555 Any thoughts on why this doesn't work? Do I need

AVPlayer cannot resume upon Wifi drops in iOS 8

人盡茶涼 提交于 2019-11-29 07:04:55
I'm using AVPlayer to play streaming video. When Wifi drops and later enables, I see that AVPlayer cannot resume, no matter how many times I call AVPlayer play , and its currentItem 's duration is NaN, seekableTimeRanges is empty. This is not the case for iOS 7, it resumes and plays well. The workaround I can think of is to restart the player. How to deal with this? 来源: https://stackoverflow.com/questions/28059019/avplayer-cannot-resume-upon-wifi-drops-in-ios-8

How to programmatically open the WIFI settings in Objective-C on iOS 10

旧街凉风 提交于 2019-11-29 06:54:05
The following code works fine on iOS 9, see this post. But it doesn't work on iOS 10. How to open WIFI settings programmatically on iOS 10 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]]; Ahmad F The same exact code should work, but for iOS 10 you need to do some additional work by adding "prefs" to the URL Types: After selecting your target: Navigate to "Info" tab. After scrolling to bottom, you should see "URL Types" section. Add a new one (by clicking on the plus button) and fill the "URL Schemes" with "prefs". It should be similar to this: Now, your

Scan and connect to Wifi networks using Java

可紊 提交于 2019-11-29 06:31:08
Need to write a client, which can scan the available WIFI networks and connects to best known using Java. This might be desktop client which does this job. Any pointers would be helpful and appreciate your response. You'll have to rely on a JNI library since you can't access a wireless device directly in Java. jWlanScan for Windows. I suggest you to act upon your operating system. And for each of the supporting operating system try to analyse the results of the command lines needed to connect the wireless devices. It is quite straight forward and You will not have to work with JNI libraries.

How to handle WiFi to Mobile network switch programatically?

别等时光非礼了梦想. 提交于 2019-11-29 05:06:23
Right now, I am having application which works with WiFi, but while I am going to mobile providers network my application does not working. I have maintained one background service which checks for network, but im not getting how to handle network switch WiFi to Mobile and Mobile to WiFi? I am not getting how to handle WiFi to mobile network switch because already WiFi is enabled and I am not in WiFi coverage area; in this situation I want to get switched to mobile network automatically and vice-versa. My approach is as follows which is not working: String networkStatus = "disconnected"; int