Git Product home page Git Product logo

Comments (6)

tripflex avatar tripflex commented on July 29, 2024

This is because in newer version of android (which should be majority unless running really old devices), you can not update, remove, or disable networks that were not created/setup by your application.

See here:
https://github.com/tripflex/WifiWizard2/tree/3.0.0#android-permissions-and-notes

I'm curious though ... in what kind of use case scenario would you not want to connect to wifi network ... especially if it already has the correct password in the phone?

from wifiwizard2.

Hippoi avatar Hippoi commented on July 29, 2024

thanks

I have an app that should send an ESP8266 device the name of the SSID and its correct password. For this I have two text fields one for the ssid and another for the password,
In order to check that the data has been correctly entered I connect to the internet, but if the password is wrong, it also connects since the correct password is stored somewhere.

I sent the data to the ssid of the text fields and if the password is bad, I sent it wrong.

from wifiwizard2.

arsenal942 avatar arsenal942 commented on July 29, 2024

@tripflex IOT based devices in which you are only wanting a one-time connection to be established are reasons why. It is why I had the weird disable/remove network stuff in my plugin.

from wifiwizard2.

tripflex avatar tripflex commented on July 29, 2024

@arsenal942 what are your thoughts regrading this then? For my iot stuff I have it handled by the device itself, esp8266 and esp32, and just make an RPC call to the device to see if it connected to the internet or not.

I guess we could add a helper method that just tests creds, connects and returns promise is successful, reject if not, and remove after connecting?

from wifiwizard2.

xLarry avatar xLarry commented on July 29, 2024

@Hippoi I am currently facing a similar scenario in which I want to send WiFi credentials to an IoT device.

I think the verification of credentials (resp. the overall check whether a connection could be established or not) should be done on device side. Besides wrong credentials, there are other factors that could prevent a successful connection (e.g. if the WiFi has been set up as 5 GHz but the IoT device supports 2.4 GHz only).

Pre-checking the credentials on client-side might result in multiple points of failure. I would therefore recommend to test the connection on device side and return an appropriate status code.

from wifiwizard2.

tripflex avatar tripflex commented on July 29, 2024

@xLarry yes I agree, that's actually why I wrote this library for Mongoose OS to handle this specific situation as you are completely right, there's so many other factors that could come into play
https://github.com/tripflex/wifi-captive-portal

from wifiwizard2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.