Find WiFi via nmcli, wait for the network at boot, and reset the Pico… - #22
Open
qquais wants to merge 1 commit into
Open
Find WiFi via nmcli, wait for the network at boot, and reset the Pico…#22qquais wants to merge 1 commit into
qquais wants to merge 1 commit into
Conversation
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.
Title: Fix Pico provisioning on newer Pi OS and at boot (#19)
When a Pico is plugged in, the deployer writes the Pi's WiFi and address into
the Pico's config. On newer Pi OS it couldn't find them and wrote placeholders,
so the Pico never joined WiFi. At boot it also ran before the network was up,
and after copying files it left the board stopped until someone replugged it.
Now it asks NetworkManager directly, waits for the network, resets the Pico so
the new files run, and reports a failed copy honestly.
Tested on a dev Pi: one plug-in, and 24 seconds later the Pico was on WiFi and
registered. 14 unit tests. One behavior change if the office Pi ever pulls
this: a Pico resets itself after being provisioned.