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

"particle serial wifi" will try to use devices not in listening mode #457

Open
mstan opened this issue Nov 24, 2018 · 0 comments
Open

"particle serial wifi" will try to use devices not in listening mode #457

mstan opened this issue Nov 24, 2018 · 0 comments

Comments

@mstan
Copy link

mstan commented Nov 24, 2018

When using the command particle serial wifi to setup wi-fi credentials, the command will start going through the prompts to let you try and setup wifi, even if the device is NOT in listening mode.

Doing so is confusing for the user and will hang mid-process.

The process will not start if no serial device is detected. But if there is a serial device connected (outside of listening mode), you will still be able to go through the process.

Below is an example of a device in a breathing cyan state attempting to go through particle serial wifi

CALLISTO:~ user$ particle serial wifi
? Should I scan for nearby Wi-Fi networks? Yes
? Select the Wi-Fi network with which you wish to connect your device: particle.
io
? Should I try to auto-detect the wireless security type? Yes
> Detected WPA2(PSK/AES/AES) security

In the above process, it will hang indefinitely with Detected WPA2(PSK/AES/AES) security and never proceed past this point.

The recommended proposal is either check to see if the device is somehow in listening mode specifically, or at least prompt the user with function call _promptForListeningMode() prior to going through the process.

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