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

[Feature] Interact with the Bluetooth block #16

Open vipulgupta2048 opened 3 years ago

vipulgupta2048 commented 3 years ago

Currently, there is no documented way to interact or control the Bluetooth block from inside or outside the container. It would be quite helpful to issue commands to the Bluetooth block from the outside to perform functions like:

  1. Scan for Bluetooth devices
  2. Turn on/Turn off Bluetooth
  3. Connect to device

The Bluetooth block could expose an API endpoint to send requests to perform these functions or more from other containers in the application. While, if there is a tool being used to get the Bluetooth running inside the container some documentation can be linked about that tool for folks to use & control the Bluetooth block (programatically) from inside the container. Thanks for creating this! 💟