wifi

How to use data connection instead of WIFI when both are enabled?

拈花ヽ惹草 提交于 2019-12-03 18:45:51
问题 Both wifi and data connection are enabled. Since I need to use mobile data to send a http request to mobile carrier to get phone number, But android will use wifi as prior, so How can I use data connection instead of WIFI? When I enable the wifi and mobile data int the device. I use getAllNetworks() method, but it always returns wifi. I don't know Why getAllNetworks just return wifi when I enable both wifi and mobile data? When I just enable the mobile data, the getAllNetworks() return mobile

Android wifi hotspot client connection events

天大地大妈咪最大 提交于 2019-12-03 18:05:48
问题 I am connecting different devices with wifi hotspot AP programatically in my android app, How can i detect the clients being connected and disconnected and to the wifi hotspot AP i turned on programmatically ? Is there any callback event in Android API to give information regarding the connection or disconnection events of individual devices ? Thanks in advance. 回答1: I think you need to use WifiP2pDevice There you can check for available devices, and also if they are connected or not. Try

iOS: Can I manually associate wifi network with geographic location?

十年热恋 提交于 2019-12-03 16:53:34
Is it possible to make the phone to "know" that a specific wifi network is at specific geographic location? if (answer == YES) { than how? } else { can the phone figure this out by himself? } Another similar question: is there any way to start monitor a region with accuracy of ~100m but telling the CLLocationManager to use only by wifi networks and cellular antenas? Because I don't want to power up the GPS no matter what... Thanks! iPhone positioning sucks and there is nothing you can do. If you jailbreak your device you can use the Apple80211 private framework to look up the available Wi-Fi

Cannot program ESP8266

依然范特西╮ 提交于 2019-12-03 15:57:04
Blue led is blinking after powering up the module, the red one stays on, I can even connect to it via wifi. But I cannot program it. I tried Arduino IDE, different firmware flashers (Like NodeMCU, XTCOM). I'm using Arduino Mega. Here's my initial setup: VCC - 3.3 V on Arduino RST - nothing CH_PD - 3.3 V on Arduino TX - RX on Arduino (TX is transmitting data to RX, so I don't need a voltage divider, right?) RX - voltage divider (R1 = 10K, R2 = 20K) - TX on Arduino GPIO0 - GND on Arduino GPIO2 - nothing GND - GND on Arduino Then I tried uploading a sketch from the Arduino IDE and got the

Scanning for wifi signals only in 2.4Ghz band

感情迁移 提交于 2019-12-03 15:38:43
I need to scan for available Wi-Fi signals and their strengths. I'm using wifiManager.startScan(); and asynchronous wifiManager.getScanResult(); . On devices without support of 5GHz band it takes about 500ms to get the results, on devices with 5GHz band support it takes about 2s, and that is too much for me. I guess the 1.5s delay is in searching the whole 5GHz band. Is there any way I could tell the device to scan only in the 2.4GHz band, or any other way I could get the results faster (for example through NDK)? I searched through the entire web and found nothing, so I guess this is the only

Issues with using Managed WiFi (NativeWiFi API)

若如初见. 提交于 2019-12-03 13:59:05
问题 I am trying to create and connect to a WLAN profile using Native WiFi (https://managedwifi.codeplex.com/). I am able to view all the Network BSS List and their parameters. However, when I am trying to create/overwrite a WLAN profile, I get the below mentioned error message (Error#1): An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in ManagedWifi.dll. Additional information: The network connection profile is corrupted However, when I created a profile normally

Android application not connecting to Wifi ,but works fine in 3G shared through Wifi

我怕爱的太早我们不能终老 提交于 2019-12-03 13:51:08
问题 Hi, I am not able to understand why my android application does not work when it accesses the internet through WiFi. The application is able to work when it uses its own 3G connection. It doesn't connect to WIFI. But if I share my 3g connection which i have in my iPhone through WiFi (tethering) the android device can access the server. I checked the application in various devices, and changed the manifest as follows, still no response. The code that doesn't connect is a login page. I followed

WiFi-Direct on JellyBean, WPA Supplicant messed up

青春壹個敷衍的年華 提交于 2019-12-03 13:42:48
问题 so a couple of months ago I've started developing some WiFi-Direct applications. A few days ago, I updated both of my Galaxy Nexus to Jelly Bean (4.1.x) and tested my applications, but it seems like there's something messed up again.. It was already a pain in the ass to get the main functionality set up on ICS, but now it does not work anymore. All i get is something like this in my logcat: /wpa_supplicant( 392): p2p0: P2P-PROV-DISC-PBC-REQ a2:0b:ba:xy:zz:xx p2p_dev_addr=a2:0b:ba:xy:zz:xx pri

Scan Wifi Networks via objective-c in a Mac OS X app

孤街浪徒 提交于 2019-12-03 13:36:52
Is there a tutorial available which explains how to scan for available wifi networks via Objective-C in a mac app? I have been searching for the past few days but only found bonjour related results. I read that CoreWLAN framework is used for wifi scanning and communication, could anyone please guide me in this regards? I just want to create a program which scans for available wifi routers around. And then when I click on any of the router, it gives me a list of devices attached with that router. Is it possible? Best Regards Apple's Developer site has a nice sample project here which seems to

Network broadcast/multicast not sent by iPhone in personal hotspot mode

穿精又带淫゛_ 提交于 2019-12-03 13:32:57
Based on recent empirical findings, and based on various posts on the web, it seems that an application running on an iPhone with personal hotspot enabled cannot send broadcasts and/or multicasts out onto the personal hotspot's network. Can anyone shed light on the cause of this problem? The Application I have an IOS application, built with cross-platform C++ code, that broadcasts and multicasts its presence onto the network it is running on. The application works flawlessly when the iPhone is connected to a Wi-Fi network. In this case, other devices on the network receive the broadcasts