Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAllHotspotDevices returns only one device #107

Open
lonewolf73 opened this issue May 24, 2021 · 0 comments
Open

getAllHotspotDevices returns only one device #107

lonewolf73 opened this issue May 24, 2021 · 0 comments

Comments

@lonewolf73
Copy link

Hello everyone, I am trying this cool plugin in my simple Ionic Cordova application. With this simple code I have:

  getAllDevicesList() { 
    this.hs.getAllHotspotDevices()
    .then(_ => _,  onrejected => { this.hotspot_label = "Something went wrong" })
    .then(retVal => { 
      console.log(retVal); 
      this.hotspot_devs = [];
      this.hotspot_devs = retVal; 
      console.log(this.hotspot_devs);  // JSON array structure of devices (IP , MAC) 
    });
  }

with a scenario of a smartphone with Android 8.0 as a server and other three devices (a smartphone with Android 5.1 and two Win 10 laptops) connected to this server. If I debug this retVal , I always get only one device.... Is maybe this callback function limited to only one device?
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant