Connecting to a Specified Device
Knowing the Bluetooth address is crucial when you want to deterministically connect to specific devices. This approach is particularly beneficial when conducting experiments with numerous devices in one room, where you need controlled influence over the devices you connect with.
To enable this level of control, the Device
object has an additional Bluetooth address
parameter.
The address
parameter can be used to specify the Bluetooth Address(es) of the devices to which you want to filter out. By doing so, the SDK can focus its connection attempts specifically on the identified devices, creating a more targeted and manageable connection environment.
Bluetooth Address
The Bluetooth Address is a unique identifier assigned to each device that uses Bluetooth technology. It is used to establish and manage connections between devices.
Aidlab SDK represents Aidlab's Bluetooth address as a string of the form xx:xx:xx:xx:xx
, where each x
is a hexadecimal character representing one octet of the 48-bit address, with most significant octets listed first. Bluetooth devices on Linux and Windows will always be identified using an address string of this form. For example: b9:b2:76:d7:ac:16
.
On Mac, the Aidlab's Bluetooth address is represented as a UUID, in such form: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
, as 32 hexadecimal (base-16) digits, displayed in 5 groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and 4 hyphens). For example: 64cc003b-96f3-46f5-bc1e-d846e4555e79
.