Closed paumoreno closed 6 years ago
Fixes #25
You are totally right. I am just waiting to release the 2.0 version of node-wifi before accepting your pull request. It will be ok this weekend I think.
There is a conflict after releasing version 2.0. Please can you rewrite your PL ?
Rewritten and tested!
Sorry, I added a new functionality in the same dev branch, which is related to issue #30
Thx for all your contribution. I check it this weekend on my own and I accept it just after.
I have read your PL and thank you a lot. It is quite clear. You added scan before connection in order to get the wifi network security protocol. So by this way you can connect to WEP.
Moreover, you used promises to better manager workflow and catch errors. I was not very happy to use promise because of Javascript compatibilities (Older versions of node don't manage promise I think) but whatever !
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
We are using this library in Windows, and we detected that
connectToWifi
's callback is called when Windows is told to connect to the network instead of waiting for it to actually connect.I changed its behaviour, so it waits until
netsh wlan connect
is done and the profile XML is deleted.Additionally, if the connection fails, the function also takes care of deleting the created connection profile.