particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

feature/sc-126610/make-particle-cli-uses-serial-to-configure #720

Closed hugomontero closed 5 months ago

hugomontero commented 5 months ago

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

  1. Pull down the branch: git pull && git checkout feature/sc-126610/make-particle-cli-uses-serial-to-configure
  2. Install dependencies: npm i
  3. Attempt to manually configure a p2 / argon device:
    • npm start -- usb listen
    • npm start -- serial wifi
  4. 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

Completeness