tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+
https://www.npmjs.com/package/cordova-plugin-wifiwizard2
Apache License 2.0
123 stars 146 forks source link

How to disconnect from a ssid and connect another ssid? #105

Open kingkarki opened 4 years ago

kingkarki commented 4 years ago

<!--

Have you read the plugins' Code of Conduct? By creating an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/tripflex/wifiwizard2/blob/master/CODE_OF_CONDUCT.md

-->

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

Description

When I try to disconnect using the following code I am unable to disconnect. It gives me an error.

disconnect(){
    WifiWizard2.disconnect('karki_fsrkt').then((ssid) => {
      console.log("Disconnect: " + ssid);
      this.wifiSsid = ssid;
    }).catch((err) => {
      console.log("Failed to disconnect");
      console.error(err);
    });;

  }

DISCONNECT_NET_DISABLE_ERROR

How to disconnect properly? I am using an android phone. [Description of the issue]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Reproduces how often: [What percentage of the time does it reproduce?]

Versions

Please include the plugin version that you are using and also include the OS, version and device you are using.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

hathemi commented 4 years ago

have you find a solution for this ?

ashutoshtiwari199 commented 8 months ago

Any update on above?