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

Network profile is saved as wrong filename #78

Closed
Spitz3492 opened this issue Aug 5, 2019 · 7 comments
Closed

Network profile is saved as wrong filename #78

Spitz3492 opened this issue Aug 5, 2019 · 7 comments
Labels

Comments

@Spitz3492
Copy link

Spitz3492 commented Aug 5, 2019

'nodeWifiConnect.xml',

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.

@samuelcseto
Copy link
Contributor

Hi, I have already fixed this in #76. The library later tries to delete the file named 'nodeWifiConnect.xml' So I guess the correct file name should be 'nodeWifiConnect.xml' and not the SSID.

@samuelcseto
Copy link
Contributor

samuelcseto commented Aug 6, 2019 via email

@Spitz3492
Copy link
Author

Change the filename to "nodeWifiConnect.xml" then as well on line #40 because that is what is causing my issue. Your pull is screwing up the master branch of this npm install.

@Spitz3492
Copy link
Author

I checked out your branch and it seems you have already fixed this issue. Please commit that change to master.

@samuelcseto
Copy link
Contributor

I am not the author of this repo so I can't merge into master until the author accepts my pull request #76

@friedrith
Copy link
Owner

Sorry guys, I was in vacation without internet connection. I will merge this pull request #76 as soon as possible.

samuelcseto added a commit to samuelcseto/node-wifi that referenced this issue Aug 20, 2019
The network profile add command is being executed with wrong filename.
Fixes issue friedrith#78
@friedrith
Copy link
Owner

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants