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.
Depends on #435
Attempts to implement #71
This PR reworks the wifi provisioning, which originally used SmartConfig, to instead use an ESP-Now based implemenation.
When a tracker can't connect to any of its credentials options, it starts sending out esp-now packets on all possible channels. If another tracker that's currently provisioning gets these packets, it will reply with the SSID and password of the wifi network it is connected to. The searching tracker then receive these and attempt to connect with the provided credentials.
A tracker can be put into provisioning mode by either sending it the "START PROVISION" serial command, or sending it a WifiProvisioning packet (packet id 27, only parameter a boolean saying if the provisioning should be started or stopped).
Caveats:
TODO: