Skip to content

bluetooth.conf

Calin Crisan edited this page Feb 2, 2020 · 10 revisions

File Location And Role

The file lives at /data/etc/bluetooth.conf. It can be provisioned using /boot/bluetooth.conf and uses /etc/bluetooth.conf as a default. The file is not present by default and should be created by the user, if the Bluetooth stack is needed.

Note that the bluez-utils 5.x package required for Bluetooth to work is not enabled by default in thingOS. You'll need to enable it (as well as the deprecated CLI tools) in your configurations to have this functionality.

File Format

The file is used as configuration for the BlueZ 5 Bluetooth stack. In fact, the configuration file used by the bluetoothd daemon is /etc/bluetooth/main.conf, which, through some indirections, will have the content of the /data/etc/bluetooth.conf.

An official example of a Bluetooth configuration file can be found here. Following is a simple example of a bluetooth.conf file:

[General]
Name = myThingOS
Class = 0x240404
DiscoverableTimeout = 60
PairableTimeout = 60
NameResolving = false

[Policy]
AutoEnable = true
FastConnectable = true

In the absence of a Name directive, the hostname of the system will be used.

Clone this wiki locally