WiFiManager | ESP8266 WiFi Connection manager with web captive portal

 by   tzapu C++ Version: v2.0.16-rc.2 License: MIT

kandi X-RAY | WiFiManager Summary

kandi X-RAY | WiFiManager Summary

WiFiManager is a C++ library typically used in Internet of Things (IoT), Arduino applications. WiFiManager has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

️ Defines cannot be set in user sketches #define WM_MDNS // use MDNS.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              WiFiManager has a medium active ecosystem.
              It has 5857 star(s) with 1815 fork(s). There are 226 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 498 open issues and 888 have been closed. On average issues are closed in 51 days. There are 46 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of WiFiManager is v2.0.16-rc.2

            kandi-Quality Quality

              WiFiManager has 0 bugs and 0 code smells.

            kandi-Security Security

              WiFiManager has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              WiFiManager code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              WiFiManager is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              WiFiManager releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 425 lines of code, 0 functions and 3 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WiFiManager
            Get all kandi verified functions for this library.

            WiFiManager Key Features

            No Key Features are available at this moment for WiFiManager.

            WiFiManager Examples and Code Snippets

            No Code Snippets are available at this moment for WiFiManager.

            Community Discussions

            QUESTION

            setValueAsync (Cannot resolve method 'setValueAsync' in 'DatabaseReference')
            Asked 2022-Apr-07 at 07:52

            I am doing this guide link and i cant call setValueAsync i get error Cannot resolve method 'setValueAsync' in 'DatabaseReference'. I saw that I can use it at the start where I set String but I don't know how can it help me. Thanks all.

            My code:

            ...

            ANSWER

            Answered 2022-Apr-07 at 07:51

            The setValueAsync() method is a part of the Firebase Admin SDK and does not work in Android. If you need to add a value to the Realtime Database in an Android fragment, you have to use the Fireabse Android SDK and use setValue() method as explained in the official documentation for writing data.

            Source https://stackoverflow.com/questions/71778210

            QUESTION

            Is the Android Wifi-API really so broken on Android 10+?
            Asked 2022-Mar-22 at 11:19

            I'm working on a Wifi auto connect feature and I am shocked how broken that API is.

            I'm using now 5 different APIs and I still don't get it in a way the user would expect it.

            I have a setting to enable wifi auto connection on Android 10+ I'll try this:

            1. Check if I hold the ACCESS_WIFI_STATE permission with: ...

            ANSWER

            Answered 2022-Mar-22 at 11:19

            Well just a half answer, but it might help anyway. Here is how I get the current SSID of the user (you need to hold the location permission):

            Source https://stackoverflow.com/questions/71549864

            QUESTION

            WifiManager not working on API 29 and higher using Android Studio
            Asked 2022-Mar-02 at 12:19

            So I tried to use the code for wifi manager to disable/enable wifi, my app's target device are for API 29 and higher only. I just found out that WifiManager only works for older version. Is there other way on how to do it that will work on higher versions?

            For reference only:

            ...

            ANSWER

            Answered 2022-Mar-02 at 12:19

            setWifiEnabled is deprecated in Android 10+ due to security reasons

            This method was deprecated in API level 29. Starting with Build.VERSION_CODES#Q, applications are not allowed to enable/disable Wi-Fi. Compatibility Note: For applications targeting Build.VERSION_CODES.Q or above, this API will always fail and return false. If apps are targeting an older SDK (Build.VERSION_CODES.P or below), they can continue to use this API.

            now your only way is to pass user to Settings GUI, in which Wi-Fi may be enabled manually only

            Source https://stackoverflow.com/questions/71322395

            QUESTION

            Xamarin Dependency Services does not work with higher Android version
            Asked 2022-Feb-07 at 13:56

            I have programmed a Xamarin app that uses a native Android function through Dependency Service. Specifically it is about WifiManager and the method SetWifiEnabled() which is for turning off Wifi. Using Android 7.1 emulator with API 25 everything works and I can turn off the wifi. With emulator with Android version 11 and API 30 the wifi is not turned off which I assume that the method SetWifiEnabled() does not work. The wifi is not turned off. Does anyone know the reason for this ? Thanks a lot

            Here is the Code from Dependency Service:

            ...

            ANSWER

            Answered 2022-Feb-07 at 13:56

            according to the docs

            This method was deprecated in API level 29. Starting with Build.VERSION_CODES#Q, applications are not allowed to enable/disable Wi-Fi. Compatibility Note: For applications targeting Build.VERSION_CODES.Q or above, this API will always fail and return false. If apps are targeting an older SDK (Build.VERSION_CODES.P or below), they can continue to use this API.

            Source https://stackoverflow.com/questions/71018938

            QUESTION

            How to set wi-fi in lock mode in API 29?
            Asked 2021-Dec-24 at 09:01

            i'm using Google guide to mediaPlayer. To lock wi-fi from being disabled it's recommended to lock it while playing media via wi-fi:

            ...

            ANSWER

            Answered 2021-Dec-13 at 17:13

            There are some changes in Api 29 regarding Wi-Fi performance modes. According to the Android 10 highlights documentation:

            Apps can now request adaptive Wi-Fi by enabling high performance and low latency modes. These can be a great benefit where low latency is important to the user experience, such as real-time gaming, active voice calls, and similar use-cases. The platform works with the device firmware to meet the requirement with the lowest power consumption. To use the new performance modes, call WifiManager.WifiLock.createWifiLock() with WIFI_MODE_FULL_LOW_LATENCY or WIFI_MODE_FULL_HIGH_PERF. In these modes, the platform works with the device firmware to meet the requirement with lowest power consumption.

            To support Api 29 you can now use WIFI_MODE_FULL_LOW_LATENCY or WIFI_MODE_FULL_HIGH_PERF constants:

            Source https://stackoverflow.com/questions/70336178

            QUESTION

            ESP8266WiFi.h: No such file or directory
            Asked 2021-Nov-16 at 18:25

            How can I make the WifiManager library work on a ESP32 board? I'm using PlatformIO to develop my code.

            Here are my imports:

            ...

            ANSWER

            Answered 2021-Nov-16 at 18:22

            The latest release of WiFiManager library (0.16) is almost a year old and doesn't support ESP32.
            You will need to install the library from Github to get ESP32 support.

            In your platformio.ini replace

            Source https://stackoverflow.com/questions/69982473

            QUESTION

            how to get list of wifi with xamarian android app
            Asked 2021-Nov-04 at 09:15

            i have created one mobile app that gets list of wifi and get inserts to database. here is my code:

            ...

            ANSWER

            Answered 2021-Nov-04 at 09:15

            If you want to get the wifi list for Xamarin.From on Android Platform, it need to use the DependencyService to implement the function on each platform.

            In Xamarin.Forms:

            Source https://stackoverflow.com/questions/69824798

            QUESTION

            NetworkInfo and WifiConfiguration has been deprecated in SDK 22
            Asked 2021-Jul-16 at 12:40

            I'm using android lollipop in PAX A920 device (SDK Version 22). I get a warning message like this when build:

            NetworkInfo in android.net has been deprecated

            WifiConfiguration in android.net has been deprecated

            I'm confused because I saw an example of sdk 22 in C:\Users\{YOUR_ACCOUNT}\AppData\Local\Android\Sdk\sources\android-22\com\android\connectivitymanagertestto access wifi using that method, but why does it appear deprecated?

            What method is the same to replace the deprecated methods?

            ...

            ANSWER

            Answered 2021-Jul-16 at 12:40

            Deprecated classes were repaced with ConnectivityManager system service and NetworkCallbacks: https://developer.android.com/training/monitoring-device-state/connectivity-status-type

            Even though the official code example shows how to get NetworkInfo from ConnectivityManager there is a highlighted note:

            Here is a sample code of how you could get the current network state and also receive updates as time goes by. This is a partially stripped-down solution that I would use in production. If you connect it with RxJava or RxKotlin you could create an observable that will hold network state and that will be updated when overridden method of NetworkCallback get called.

            Note regarding Java: public class-level variables are made public just for brevity. I'd instead create a few getters for these to access the value behind these variables.

            Feel free to ask questions.

            Java

            Source https://stackoverflow.com/questions/68317355

            QUESTION

            Connecting to Wifi AP programmatically in Android
            Asked 2021-Jun-13 at 02:19

            I'm actually programming something that won't let the user access to android native wifi connecting page, so I'm programming it inside my Android app. It scan the available Wifi Network, display it in a ListView, and then you click on the network you want to connect to.

            Actually everything works well beside my connection function, which makes my app crash, so if you have any idea... Here is the code (this is the function that is called after the user has enter the network pass) and the stack trace :

            ...

            ANSWER

            Answered 2021-Apr-30 at 14:01

            So here is the full code that works now, after the help of @LevM. and a bit of self researh. I post it because I did not find much solutions to connect to specific Wifi network in Android on internet (SO, Youtube or whatever) so if it can help at least one dev some days, I'll be happy ! :D (Note : I'm a student programmer, I'm not saying that this solution is the best but it is functionnal at least)

            I had actually an issue with my wifiManager not being initialized. And then I deleted the wifiConfiguration list loop, I realized I didn't needed it. Finally I added String Format on SSID and Password since they need to be inside anti slash (" \ ").

            Source https://stackoverflow.com/questions/67331991

            QUESTION

            Android WifiManager not enabling/disabling WiFi state
            Asked 2021-Jun-12 at 05:07

            I have a mobile application that allows users to enable/disable WiFi on click of a button.

            However I noticed today that my app is no longer able to change the WiFi status. It was working since before few weeks. I tried to debug it but the following method always returns false.

            ...

            ANSWER

            Answered 2021-Jun-12 at 05:07

            This API is no longer supported when targeting Android 10 or higher.

            Starting with Build.VERSION_CODES#Q, applications are not allowed to enable/disable Wi-Fi. Compatibility Note: For applications targeting Build.VERSION_CODES.Q or above, this API will always fail and return false. If apps are targeting an older SDK (Build.VERSION_CODES.P or below), they can continue to use this API.

            Instead, you should use the Settings.Panel API to present a system UI allowing users to enable or disable Wi-Fi.

            Source https://stackoverflow.com/questions/67945675

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install WiFiManager

            You can download it from GitHub.

            Support

            You can and should password protect the configuration access point. Simply add the password as a second parameter to autoConnect. A short password seems to have unpredictable results so use one that's around 8 characters or more in length. The guidelines are that a wifi password must consist of 8 to 63 ASCII-encoded characters in the range of 32 to 126 (decimal). Use this if you need to do something when your device enters configuration mode on failed WiFi connection attempt. Before autoConnect(). configModeCallback declaration and example.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tzapu/WiFiManager.git

          • CLI

            gh repo clone tzapu/WiFiManager

          • sshUrl

            git@github.com:tzapu/WiFiManager.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link