This PR will change the way gen3 and above configure wifi:
Since ControlRequest doesn't allow to pre-load wifi credentials, we have to change the wifi configuration to use serial
How to Test
Pull down the branch: git pull && git checkout feature/sc-126610/make-particle-cli-uses-serial-to-configure
Install dependencies: npm i
Attempt to manually configure a p2 / argon device:
npm start -- usb listen
npm start -- serial wifi
Attempt to configure a p2 / argon device with a file (make sure that network can't be reached out):
npm start -- usb listen
npm start -- serial wifi --file /path/to/my/file.json
Go to wifi-tool and verify your configured networks
Related Issues / Discussions
Tests should pass
Manually configuration should be ok
file configuration should pass
Going to wifi-tool you will be able to see your stored wifi network
Description
This PR will change the way gen3 and above configure wifi: Since ControlRequest doesn't allow to pre-load wifi credentials, we have to change the wifi configuration to use
serial
How to Test
git pull && git checkout feature/sc-126610/make-particle-cli-uses-serial-to-configure
npm i
p2
/argon
device:npm start -- usb listen
npm start -- serial wifi
p2
/argon
device with a file (make sure that network can't be reached out):npm start -- usb listen
npm start -- serial wifi --file /path/to/my/file.json
Related Issues / Discussions
wifi-tool
you will be able to see your stored wifi networkCompleteness