android-wifi

Identify that Android device supports EAP-SIM for WiFi authentication programatically

谁说我不能喝 提交于 2020-01-15 14:25:09
问题 Currently there are two types of Android devices available in the market. Some devices support EAP-SIM authentication, while other does not. How can I identify programmatically whether my device support EAP-SIM authentication or not? 回答1: To implement EAP-SIM feature, it requires patched wpa_supplicant and API to access APDU channel. Since the AOSP did not have EAP-SIM support, there are different implementations on the market. It's hard to identify from wpa_supplicant , but we can check the

Unable to programatically create working Wi-Fi access point on Jellybean tablet

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 10:14:26
问题 I am attempting to programatically create a Wi-Fi access point on a Android tablet device (Nexus 10 - 4.2.2) and connect to it from a PC without success. Prior to posting a great slab of code and wasting peoples time, I'd like to check that I'm on the right track. The tablet has no 3G or 4G capability, and therefore does not normally require a access point (aka hot spot). I am aware that the published Android API does not provide for this. The general technique I am using is described here

Unable to programatically create working Wi-Fi access point on Jellybean tablet

混江龙づ霸主 提交于 2020-01-15 10:14:10
问题 I am attempting to programatically create a Wi-Fi access point on a Android tablet device (Nexus 10 - 4.2.2) and connect to it from a PC without success. Prior to posting a great slab of code and wasting peoples time, I'd like to check that I'm on the right track. The tablet has no 3G or 4G capability, and therefore does not normally require a access point (aka hot spot). I am aware that the published Android API does not provide for this. The general technique I am using is described here

Not able to Receive subscribed Message with PubSubClient.h in Arduino Uno R3

情到浓时终转凉″ 提交于 2020-01-15 09:28:50
问题 #include "SPI.h" #include “WiFiEsp.h” #include <WiFiEspClient.h> #include “SoftwareSerial.h” #include <PubSubClient.h> #include <WiFiEspUdp.h> float temp=0; int tempPin = 0; int isClientConnected = 0; char data[80]; char ssid[] = “SSID”; // your network SSID (name) char pass[] = “PASSWORD”; // your network password int status = WL_IDLE_STATUS; // the Wifi radio’s status char deviceName = “ArduinoClient1”; IPAddress server(xxx,xxx,xxx,xxx); //MQTT server IP IPAddress ip(192,168,43,200); void

Why can't I detect a wifi SSID with unicode characters on Android?

让人想犯罪 __ 提交于 2020-01-15 05:38:08
问题 I have a wifi AP with an SSID that's a string of unicode characters (ex: "ԱԲԳԴԵԶԷԸԹԺԻԼ") that I want my Android device to connect to. When my device (Nexus One) detects the hotspot, the SSID looks like this: "܍܍܍܍܍܍܍܍" and does not recognize it. Any idea how to fix this? 回答1: I've wrote an app "WiFi Connection Manager" to fix this problem. However, I don't understand any Armenian, so that the result may not be displayed correctly. You can still connect to the Access Point even if the names

inconsistency in getting WifiP2pInfo in WiFiDirect

不想你离开。 提交于 2020-01-14 05:17:14
问题 i am creating an application based on WifiDirect in android but the issue that i am facing inconsistency in getting wifi p2p connection info. i am checking whether wifi direct is on or not , it shows its true but still sometimes i am getting connection info and sometimes not and thats the reason why i am not getting groupOwnerAddress . one more thing is that i get networkInfo.isConnected() to false and that time only i am not able to get the WifiP2pInfo . sometimes it works sometimes it doesn

Details of connected users to mobile hotspot

为君一笑 提交于 2020-01-13 06:47:12
问题 If I've enabled Wi-Fi Hotspot in my android phone and 2 other android phones are connected to my Hotspot, then how can I distinguish between each phone? Does my phone distinguish between the different phones using IEMI numbers or something else? 回答1: 1) You can use BroadcastReciever "android.net.wifi.WIFI_HOTSPOT_CLIENTS_CHANGED" to detect client connection. In your AndroidManifest: <receiver android:name=".WiFiConnectionReciever" android:enabled="true" android:exported="true" > <intent

How to connect to a wireless network in android?

 ̄綄美尐妖づ 提交于 2020-01-13 04:38:09
问题 I have managed to scan for wireless networks and obtain scan results in my application. but is there a way i could possibly connect to them using my app itself? I was wondering whether I would have to specify the encryption type for the network i'm trying to connect? and my requirement would be to connect to any wireless network irrespective of it's encryption type? Any ideas? Thanks 回答1: TO connect to WiFi AP needed to implement followed steps: Scan WiFi To be sure that you have appropriate

How to get current wifi connection name in android pie(9) devices?

 ̄綄美尐妖づ 提交于 2020-01-11 10:22:33
问题 I know it is very simple for you. Here I am just tried to get WiFi name in android pie devices. I am able to get WiFi name till Nogout devices with the help of below line of code. String ssid = wifiInfo.getSSID(); I have tried lots of answer and Android developer docs but unfortunately, I can not get a WiFi name on my mobile(Nokia 6.1 plus). I Know I am doing mistakes. I just want a code there I can get a wifi name from my mobile to my android studio logcat. 回答1: This is related to

Is it possible to connect two or more WiFi Direct groups?

一世执手 提交于 2020-01-11 03:32:11
问题 I am currently experimenting with WiFi-Direct (WiFiP2p) for a project I'm working on and wanted to know if one can create bridge between groups, thus joining them together? Based upon the white paper released by the WiFi Alliance, it should be possible (though "The P2P Specification does not describe the mechanism for this capability – implementation is specific to the vendor"). I have looked through the internet and have found some answers (this, this, etc.) but I feel that none are