Section Variables
Possible section variables that can be used
Last updated
Was this helpful?
Possible section variables that can be used
Last updated
Was this helpful?
Returns the status of the Bluetooth adapter:
0
if the Bluetooth adapter is OFF
1
if the Bluetooth adapter is ON
Returns the list of devices in a formatted string.
Every device is separated by ;
, and evey item of a device is separated by |
.
It's useful for example to be used in a lua script as in the .
device_name|device_address|device_id|connected[0,1]|paired[0,1]|can_pair[0,1]major_category|minor_category|has_battery_level[0,1]|battery|is_ble[0,1];
This is the name of the device, with any whitespace removed.
The address of the device. At the moment it is not used for anything, probably in the future it could be used for pairing/unpairing or connection/disconnection operations.
The Id of the device. At the moment it is not used for anything, probably in the future it could be used for pairing/unpairing or connection/disconnection operations.
If the device is connected or not.
If the device is paired or not.
If it's possible to pair the device.
The major category of the device. Can be useful to change the appearance of the device.
The minor category of the device. Can be useful to change the appearance of the device.
If the plugin was able to obtain the battery level of the device.
The percentage of the battery of the device if present. It's possible that some devices' battery is not displayed
If the device has Bluetooth Low Energy capabilities.
For Bluetooth Classic devices:
For Bluetooth LE devices:
For Bluetooth Classic devices:
For Bluetooth LE devices: