I am currently thinking of developing an app with monaca.
Obtain a list of wireless LANs that can be connected from your smartphone using the app.
After selecting a network, enter your password and click
You can connect to that network.
I would like to create something like that.
In the monaca documentation,
https://docs.monaca.io/ja/reference/cordova_6.2/network-information/
There was a plug-in to get network information, but
I wonder if wifi is connected to my smartphone right now.
That's the only information I can get.
If you click the wifi icon in windows or mac,
The image is the same as the list of networks flying around it.
Is it possible to implement these functions?
Thank you for your cooperation.
I use a custom plug-in, but
https://github.com/parsonsmatt/WifiWizard
I could have used .
I only checked on Android, but
javascript:
function checkWifi(){
WifiWizard.listNetworks(function(list){
alert(JSON.stringify(list);
}, function(error){
alert(error);
});
}
HTML:
<button onclick="checkWifi();">Check Wifi</button>
provides a list of SSIDs.For some reason, there was a double quote in the SSID.
© 2024 OneMinuteCode. All rights reserved.