-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
Description
node-wifi/src/windows-connect.js
Line 34 in eeaef52
'nodeWifiConnect.xml', |
node-wifi/src/windows-connect.js
Line 52 in eeaef52
return execCommand('del ".\\nodeWifiConnect.xml"'); |
The windows connect function saves the new network profile under the filename "nodeWifiConnect.xml" but then immediately after uses the netsh command to add the profile using the filename (wifi ssid + ".xml"). This gives me the error, "stdout: 'The system cannot find the file specified.\r\n\r\n\r\n',". So line 34 should write the filename as (ap.ssid + ".xml") not "nodeWifiConnect.xml". After I made this change to the writeFileAsync and the following execCommand delete on line 46, my program connecting to the network successfully.