feat: wifi companion configuration via cli rescue#2720
Open
NickDunklee wants to merge 1 commit into
Open
Conversation
The idea with this was allowing users to use WiFi companions, without having to compile a build. This change enables CLI Rescue commands to companion wifi builds so they can be provisioned via USB cable. (The CLI is limited in number of characters, so some longer SSIDs would still have to be compiled in, for now.) This would also allow a wifi companion firmware to be available for download from the MeshCore site and while the user is setting up, they could provision their SSID/password on the web-CLI or a local terminal via USB without having to compile a build. Longer-term, other solutions could be devised to make this more flexible, like the mobile app could add in the wifi provisioning step with a Bluetooth bootstrap stage, leveraging this code as the mechanism to store/configure. CLI Rescue commands added: | Command | Syntax | Description | |---|---|---| | Set WiFi SSID | `wifi_ssid <ssid>` | Set the network name | | Set WiFi Password | `wifi_pwd <pwd>` | Set the network password | | Commit WiFi Settings | `wifi_commit` | Apply and save settings | | Clear WiFi Settings | `wifi_clear` | Reset all WiFi settings | This is dependent on [PR 2706](meshcore-dev#2706). Tested on Heltec v3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The idea with this was allowing users to use WiFi companions, without having to compile a build. This change enables CLI Rescue commands to companion wifi builds so they
can be provisioned via USB cable. (The CLI is limited in number of characters, so some longer SSIDs would still have to be compiled in, for now.)
This would also allow a wifi companion firmware to be available for download from the MeshCore site and while the user is setting up, they could provision their SSID/password on the web-CLI or a local terminal via USB without having to compile a build.
Longer-term, other solutions could be devised to make this more flexible, like the mobile app could add in the wifi provisioning step with a Bluetooth bootstrap stage, leveraging this code as the mechanism to store/configure.
CLI Rescue commands added:
wifi_ssid <ssid>wifi_pwd <pwd>wifi_commitwifi_clearThis is dependent on PR 2706.
Tested on Heltec v3