-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BLE connection support in provisioning loop. #60
base: main
Are you sure you want to change the base?
Conversation
…t provisioning method).
@@ -1,35 +1,37 @@ | |||
module github.com/viamrobotics/agent | |||
|
|||
go 1.23.1 | |||
go 1.23.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to circle back and ask about dependencies here.
|
@@ -88,6 +103,9 @@ func NewProvisioning(ctx context.Context, logger logging.Logger, updateConf *age | |||
|
|||
mainLoopHealth: &health{}, | |||
bgLoopHealth: &health{}, | |||
|
|||
muProvisioningMethod: sync.Mutex{}, | |||
provisioningMethod: provisioningMethodBLE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI i'll confirm with Eliot which one should be the default. My instinct says BLE but will confirm
|
||
const ( | ||
provisioningMethodHotspot provisioningMethod = "WiFi" | ||
provisioningMethodBLE provisioningMethod = "BLE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's call this bluetooth
. For users, setting the configuration it will be more obvious what bluetooth means.
Integrate BLE manager into provisioning flows (and test as the default provisioning method).