Add new control request to set wifi creds
Description
Device-OS added a new control request to set network credentials without needing for a connection attempt. This PR adds support to use this control request to configure wifi network. If device is of device-os version which does not support this control request (which is 6.x TBD), wifi is configured via serial commands
How to Test
- Flash your wifi devices with https://github.com/particle-iot/device-os/pull/2763
- Connect this CLI to this particle-usb PR https://github.com/particle-iot/particle-usb/pull/103
- Most important! Correct this line in this PR to always use control requests - https://github.com/particle-iot/particle-cli/compare/feature/wifi-configuration?expand=1#diff-cd875ddf040ba04907a08a3fd03ef7fa0039f29267b30aca435178386162ec24R538
- Run
npm start -- serial wifi
Completeness
- [x] User is totes amazing for contributing!
- [x] Contributor has signed CLA
- [x] Problem and solution clearly stated
- [x] Tests have been provided
- [x] Docs have been updated
- [x] CI is passing
@keeramis I was checking particle-usb and saw that setWifiCredentials function was removed so this PR should be closed right?
@hugomontero Thanks for taking a look! I am temporarily closing this PR because of the new changes scoping out here. https://www.notion.so/particle/CLI-Improved-WiFi-Configuration-8a2ee199e4484b428e0ee0c9b26d219a