Closed nrobinson2000 closed 7 years ago
I had the same issue configuring wifi via serial to a WPA2 access point.
Adding values manual produces a slightly different error than @nrobinson2000 Working on MacBook Pro macOS 10.12.5, nodejs 8.1.1, npm 5.0.3
Brettskiworkmbp:~ brettski$ 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: Treehouse Guest
? Should I try to auto-detect the wireless security type? No
Attempting to configure Wi-Fi on /dev/cu.usbmodem1421
? Security Type WPA2
(node:14114) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: cb is not a function
(node:14114) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Rolled back particle cli to v1.22 setup works as expected.
Thanks for the reports! I'm quite surprised by this as I tested the changes for 1.23.0 and did not see the same behavior. Testing the released 1.23.0 version again I still don't see it. What version of firmware is running on your devices?
$ 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: iPhoneHotspot
? Should I try to auto-detect the wireless security type? Yes
> Detected WPA2(PSK/AES/AES) security
Attempting to configure Wi-Fi on /dev/cu.usbmodem1411
? Wi-Fi Password ************
Done! Your device should now restart.
$ 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: iPhoneHotspot
? Should I try to auto-detect the wireless security type? No
Attempting to configure Wi-Fi on /dev/cu.usbmodem1411
? Wi-Fi Password ************
Done! Your device should now restart.
@technobly I am not sure how to verify what the firmware version is. 0.6.2 perhaps?
@brettski you can put the device in listening mode and run particle identify
@technobly, yeah just figured that out. 0.6.2 is the version. Loaded cli 1.23 again, just in case an I get the same error result.
Ok, I have replicated the issue on 0.6.2. It does work fine with 0.7.0-rc.1 firmware though. Not suggesting you move to that unless you want to test a pre-release. Rolling back to version 1.22.0 is recommended, as the changes to 1.23.0 were only to support WPA2 Enterprise setup.
Rolling back to version 1.22.0 is easy with one command:
npm install -g particle-cli@v1.22.0
Yes, rolling back to cli version 1.22 is how continued to work earlier
I had to use:
$ sudo npm install -g --unsafe-perm node-pre-gyp npm serialport particle-cli@v1.22.0
FYI: v1.23.1 is released that fixes this problem.
@monkbroc , @m-mcgowan , @technobly