I am trying to scan for bluetooth devices in my application using btmgmt. On runing the command inside the container:
btmgmt find |grep rssi |sort -n |uniq -w 10
all I get is:
Unable to open socket
I found this thread where it says that in multicontainer setup, the container using bluetooth must be set to
network_mode: host . So I did that, but after updating the application running
hcitool dev returns only:
root@5dd2aa0:/usr/src/app hcitool dev Devices:
btmgmt doesn’t complain any more, but it doesn’t find anything.
hcitool dev in the host os also returns the same empty list of devices.
I have the UART enabled in the device configuration (if this is even relevant). The application is running on raspberry pi 3 coupled with the Monarco HAT. As far as I know, rpi 3 supports bluetooth. Do I need enable bluetooth explicitly as is the case for the raspbian image? (where you need to uncomment
dtoverlay=pi3-disable-bt in boot/config.txt)