balena-labs-projects / bluetooth

Optimized bluetooth agent for balenaOS. Based on BlueZ 5.0.
https://hub.balena.io/blocks
23 stars 11 forks source link

Block should reset interfaces on startup #5

Closed tmigone closed 4 years ago

tmigone commented 4 years ago

An interface that gets configured by the block will keep it's configuration until told otherwise. Restarting the block with a different BLUETOOTH_HCI_INTERFACE value will configure the new one but keep the old one configured. So both interfaces will be configured and broadcasting.

To avoid that we need to restart/turn off all interfaces at block startup.