tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+

Home Page:https://www.npmjs.com/package/cordova-plugin-wifiwizard2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disconnect from a ssid and connect another ssid?

kingkarki opened this issue · comments

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

  • Bug
  • Enhancement
  • Task
  • [yes ] Question
  • Other

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.

have you find a solution for this ?

Any update on above?