Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Automatic Reconnection Issue for Android Tablets with IoT Hub Wi-Fi Network

We’re facing an issue related to automatic reconnection of Android tablets to an IoT hub’s Wi-Fi network. Here are the details: Scenario: We have an IoT hub that hosts our application software ...
Nikitha Shetty's user avatar
0 votes
0 answers
29 views

Detect if wifi authentication failed

Want to detect when a Wifi AP is being connected and authentication fails is it due to password failure. Tried using "android.net.wifi.supplicant.STATE_CHANGE" this gives extra **...
Vineed Gangadharan's user avatar
0 votes
0 answers
59 views

How to Detect Unsecured Wifi Android

WifiInfo class provides getCurrentSecurityType function but it is available only for API level 31 & above. private static void detectUnsecureWifiNetwork(Context context) { WifiManager ...
Ghost's user avatar
  • 98
0 votes
2 answers
344 views

How to check the wifi state in .NET MAUI?

I am looking for a way to check whether the Wi-Fi of the phone is on or off in Dote NET MAUI. Internet connection status is not important, but I just need to check Wi-Fi status. I used "...
MohammadHossein Parvaneh's user avatar
0 votes
0 answers
57 views

WiFi Manager crashes when TLS is enabled on ESP8266

Mine is a basic IoT project using ESP8266. I have integrated Tzapu's WiFi Manager and PubSub Client library for MQTT. It uses a TLS connection using WiFiSecure. The code is mostly copied from example ...
Raja's user avatar
  • 1,213
0 votes
1 answer
129 views

ESP32 WiFiManager with SPIFFS and AsyncWebServer library

I am trying to create and set up a Wi-Fi Manager with the ESPAsyncWebServer library that can be modified and used with any web server project or with any project that needs a connection to a Wi-Fi ...
thermike's user avatar
0 votes
0 answers
16 views

Client.connected is unable to detect the network disconnection in runtime. (WiFi.Client)

void setup() { Serial.begin(115200); Serial2.begin(115200); pinMode(AP_SWITCH, INPUT); pinMode(con_led, OUTPUT); pinMode(network_led, OUTPUT); digitalWrite(con_led, HIGH); digitalWrite(...
Mayur Naik's user avatar
1 vote
2 answers
82 views

How do I restart ESP 12e when it is in access point mode?

I am using an ESP 12e on a MQTT system. When it first starts up I have wifiManager open an access point so the user can put in the wifi, password, MQTT name and Key. This all works fine. However ...
user1114881's user avatar
0 votes
0 answers
119 views

Fetching Wifi-Scanning location system setting on Android without deprecated functions

I need to figure out whether the Wifi-Scanning setting is turned on or turned off in the location settings. Both ways to do this seem to be deprecated. The following two ways seem to get the desired ...
snoozebaumer's user avatar
0 votes
1 answer
52 views

How to Turn on LocalOnlyHotspot using WifiNetworkSpecifier.Builder as WifiConfiguration is Deprecated?

Here is My code- public void turnOnLocalOnlyHotspot(Context context) { ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); ...
VISHAL KUMAVAT's user avatar
0 votes
0 answers
24 views

wifi scanner broadcast receiver only registered once but continuously returning results

This is my broadcast receiver which is taken from the wifi manager documentation: private val wifiScanReceiver = object : BroadcastReceiver() { override fun onReceive(context: Context, intent: ...
cupcakeys076's user avatar
0 votes
1 answer
157 views

Android WiFi Aware - Error when creating multiple connections

Similarly to the question presented there, I'm currently developing an Android App that utilizes Wi-Fi Aware API in order to establish device-to-device connections. After the Discovery process is ...
PM-Delgado's user avatar
0 votes
0 answers
44 views

ESP32 RTCWDT_RTC_RESET Error during WiFiManager Initialization

I'm geting this error when I upload the program to the ESP32 but what I get in console is this message: 12:16:44.738 -> ets Jul 29 2019 12:21:46 12:16:44.738 -> 12:16:44.738 -> rst:0x10 (...
Julián Oviedo's user avatar
0 votes
0 answers
33 views

com.samsung.android.net.wifi.WIFI_AP_STA_STATE_CHANGED does not have support for version higher than 11 (Android/Kotlin)

Trying to find a new way to keep using com.samsung.android.net.wifi.WIFI_AP_STA_STATE_CHANGED in Android (Kotlin) but unfortunately after OS 11 (API 30) it does not have support, does anyone is using ...
Aruro deGyy's user avatar
0 votes
0 answers
115 views

Phone switches Wifi Network from IOT Wi-fi to known network in Android 14

Our Android app connects to an IOT device Wi-Fi programatically and then communicates over TCP/IP socket. Connection to IOT Wi-Fi is initiated using ConnectivityManager requestNetwork. We have a weird ...
srijansrv's user avatar
0 votes
1 answer
155 views

Android - Target sdk Version = 29 but Didnt get Wifi Mac Address in API Level 33 (Android OS 13)

With Android Target Version = 29, Compile SDK = 29 I got Wifi Mac Address in Android 10, 11, 12, But I can't get WiFI Mac Address in Android 13 only. we Got Default Mac Address only 02:00:00:00:00:00. ...
prakash joshi's user avatar
0 votes
0 answers
54 views

I a having this problem maing dictionary attack wifi python from android how can i fix this

I got this error trying to connect wifi using wifidroid module . I can't understand what type of problem is this. Is it termux or python or any other. code GNU nano 7.2 mywifidict....
user22980990's user avatar
0 votes
0 answers
34 views

How to save an Enterprise Wi-Fi Network in android 10 or later?

I am trying to save a Wi-Fi Enterprise Network in android. This code is working until Android 9 or lower but not above. public static boolean connectToEnterprise(Context context, String ssid, String ...
Hammad Zafar Bawara's user avatar
1 vote
0 answers
177 views

Enterprise configuration mandates server certificate but validation is not enabled in Android Wi-Fi network suggestion

I am trying to connect to Enterprise network on android using WiFiManager on Android. @RequiresApi(api = 29) public static boolean connectToEnterprise(Context context, String ssid, String identity,...
Hammad Zafar Bawara's user avatar
1 vote
0 answers
488 views

WPA2-EAP & WPA3-EAP stopped working on Android 13 and above

If I'm posting in the wrong forum, please kindly point me to the right direction. The same following codes worked for devices up to Android 12 has stopped working on 13 and above. //partial ...
Conqueror's user avatar
0 votes
0 answers
21 views

Why do I always obtain historical information using wifiManager.getConnectionInfo()?

I confirm that ACCESS_FINE_LOCATION and ACCESS_WIFI_STATE permission is enabled, and my app TargetSdkVersion is 30. I switched from Wi-Fi A to another Wi-Fi B and the Wi-Fi B connection was successful....
BlackPenguin-Liu's user avatar
0 votes
0 answers
58 views

Monitor/observe hotspot connection status

My app needs to connect to another device via hotspot. It will only form a closed network (no internet access) Internet will be accessed via mobile data. How can I monitor the status of the hotspot ...
Laldinpuii Colney's user avatar
0 votes
0 answers
40 views

Unable to manual WIFI Connect in Flutter

Hi we are unable to manual WIFI Connect in Flutter. we are using wifi_iot: ^0.3.18 package. this packages auto connects to the network but we unable to connect manual WIFI. i have tried other ...
Sachin  Aphro ECS's user avatar
-1 votes
1 answer
830 views

I trying to use wifimanager library on esp32 , if web portal has timeout with not connected wifi, can it be process without wifi?

i having a problem with my project, my project need to can use with wifi and non-wifi, i use wifimanager library and i trying to modified this library <i need to give wifimanager when I enter the ...
Alexandersson's user avatar
1 vote
1 answer
2k views

How can I retrieve the MAC address on Android 11 and newer versions?

I am trying to retrieve the list of devices connected to my router (Internet service provider) along with their MAC addresses. I was able to obtain the MAC address using the NetworkInterface class for ...
HaSel's user avatar
  • 11
0 votes
0 answers
285 views

ESP32 (arduino c++) - Upload file from web

I'm working with an ESP32 in the Arduino IDE. I'm using the WifiManager libraries. I need to load a .bin file from a web page using a button to select the file. After uploading the file, I need to ...
Ignacio Islas's user avatar
2 votes
0 answers
165 views

How to get network signal strength using WifiManager in below Android 11?

Deprecated solution is WifiManager.calculateSignalLevel(rssi, 5) As per Official document new solution is wifiManager.calculateSignalLevel(rssi) and this is applicable for SDK 30 (Android 11) and ...
Malik's user avatar
  • 4,955
0 votes
1 answer
399 views

startLocalOnlyHotspot start the hotspot but not showing in wifi to other devices

I am trying to develop an app. For the app I need connect two device using wifi so I was trying to turn on hotspot from a device like "SHAREIT / SHAREME". `private void startLocalOnlyHotspot(...
Reaz Ahammed's user avatar
0 votes
0 answers
33 views

unable to implement auto wifi scanning

I am developing a wifi manager app for android. here's the code that i am using to scan the networks public void scanWifiList() { // Unregister the previous instance of the ...
Qasim Malik's user avatar
2 votes
0 answers
267 views

WifiManager.ACTION_PICK_WIFI_NETWORK not working on Android 13

We developed an enterprise app using Android Studio that runs in the foreground that restricts user access to any standard android functionality like changing the Wi-Fi connection etc. We use the code ...
ThereBeDragons's user avatar
1 vote
1 answer
1k views

An alternative for WifiManager's startScan() deprecated method on Android 11 and above?

I figured out a couple of opened threads on the community referring to this issue, but there's no resolution on it. I see that Android documentation is referencing startScan() in the code snippet as ...
Cosmin Telescu's user avatar
1 vote
0 answers
309 views

Turning on hotspot in android 12

Following the answer to this question I could turn on the hotspot on an android 8 device. But the same code wont turn on the hotspot in an android 12 device. Here is my MainActivity.java: package io....
user6781's user avatar
  • 203
0 votes
0 answers
219 views

Using a JSON document to define bucket and api token for influxdb

I have my code written for connecting an esp32 to influxdb. Im utilizing the wifimanager library to set my wifi credentials without hardcoding. I would like to set up custom text boxes to fill in the ...
ndeegan's user avatar
0 votes
1 answer
297 views

How to turn on hotspot by WifiManager.LocalOnlyHotspotCallback

I need to turn on a device hotspot from inside an app. To do so, I have used WifiManager.LocalOnlyHotspotCallback (see detail here) On android 8, it first shows a dialog box as "the app has ...
user6781's user avatar
  • 203
0 votes
1 answer
2k views

Unable to retrieve MAC address on Android 11 and above using getHardwareAddress()

I have been using the following code snippet to retrieve the MAC address on Android devices running 9 and 10 successfully: But this function is not working on android 11 and above public String ...
It Solution's user avatar
1 vote
1 answer
2k views

How to connect to Wifi network programatically on Android 10 and above?

val ssid = "Your WiFi SSID" val password = "Your WiFi password" val networkSSID = "\"$ssid\"" val networkPassword = "\"$password\"" val ...
lakshmi's user avatar
  • 45
0 votes
1 answer
96 views

wifiManager doesn't update unless I check WiFi List manually from settings

I use wifiManager in Kotlin to get wifi network list with wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager wifiManager!!.scanResults But the list doesn't get ...
kaan kaya's user avatar
1 vote
0 answers
38 views

I use the WifiManager class to turn on and off wifi but it does not working

wifiOn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { wifiManager = (WifiManager) getApplicationContext().getSystemService(Context....
Sadeeq Ullah's user avatar
0 votes
0 answers
62 views

How to get SSID for Android 12 API level 31 [duplicate]

I am developing app in Xamarin Forms using Visual Studio 2022 for Mac. For Android 12 API level 31, I am getting SSID as <unknown ssid> I have added below location permissions in manifest file: &...
BSB's user avatar
  • 277
1 vote
1 answer
351 views

Adding WifiManager to METAR map

I am creating a METAR map for a friend for Christmas and was looking at creating an easier way for him to change his WiFi password on it without manipulating the code. Doing some research I have found ...
Scott Keane's user avatar
0 votes
0 answers
76 views

Can't connect to Ip addresses of hotspot connected devices using WifiManager.getConnectionInfo().getIpAddress()

whenever I try to connect to the Ip I get from WifiManager.getConnectionInfo().getIpAddress(), I get java.net.ConnectException or NoRouteToHostException exception. Also, in the hot-spot providing ...
Arnab Paul Joy's user avatar
2 votes
0 answers
1k views

Getting Wifi SSID in Android13/API Level 33 [duplicate]

Whrn i try to get the WIFI-SSID, I get UNKNOWN_SSID below is my Code: if(ContextCompat.checkSelfPermission(MainActivity.super.getApplicationContext(), Manifest.permission.ACCESS_WIFI_STATE)== ...
hengji's user avatar
  • 21
0 votes
1 answer
341 views

Problem with geting wifiInfo while app is in background

I am geting wifiInfo like that: val wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager val wifiInfo = wifiManager.connectionInfo Log.d("###", wifiInfo....
AlexVs86's user avatar
1 vote
0 answers
778 views

How to connect to wireless network programmatically in iOS swift5?

I have been trying to connect to wireless network with a code below: ` @IBAction func buttonCon(_ sender: Any){ print("button connect clicked") let ...
Big Jelly's user avatar
0 votes
0 answers
435 views

ESP32: add other configuration to Wifimanager's setup page

The available Wifimanagers (e.g. https://github.com/tzapu/WiFiManager) handle Wifi-Setup for the ESP32 nicely (build up a setup page and start a webserver so that the user can configure it easily). ...
Marian's user avatar
  • 1
1 vote
1 answer
637 views

Wifi doesn't disconnect even after being removed from wifi network suggestion. How to disconnect user after removing wifi from network suggestion?

I am trying to connect and disconnect form a wifi programmatically in android(kotlin). I am able to connect user to wifi using WifiNetworkSuggestion. Now when I try to disconnect the user from the ...
Safal Shrestha's user avatar
0 votes
1 answer
1k views

How can I setup a custom WiFi AP or Hotspot with WEP security on Android?

I need to setup a WiFi AP with WEP security on an Android Phone or Tablet and I set out to build an App for this purpose. Disclaimer: I am well aware of WEP shortcomings but I still need this. My app ...
YeO's user avatar
  • 1,120
0 votes
0 answers
495 views

Scanning wifi on newer versions of android

I'm writing a Work Tracker application, which needs to scan the nearby wifi hotspots for security. I'm trying to follow the code given at Google's official site, but it keeps failing. I read somewhere ...
Bendzsike's user avatar
1 vote
0 answers
300 views

How to get the remote device Ipaddress, host name etc for a local only hotspot in android

In Android 12, which API or methodology should we use, in order to get the IP address, hostname, MAC address of a remote device that is connected to our hotspot which is of local only hotspot type. ...
pravin kumar's user avatar
1 vote
0 answers
146 views

Xamarin Forms Android (V9) app will not switch Wifi connections when network is known

So I have a method that will connect to a wifi access point, for devices running Android 9 or less, as seen below. It works in most cases. The one case it does not work in is when my device is ...
George M Ceaser Jr's user avatar

1
2 3 4 5
14