hi Marcel, appreciate your answer, I am using code sample btgatt-client.c which uses function: static int l2cap_le_att_connect(bdaddr_t *src, bdaddr_t *dst, uint8_t dst_type, int sec) is there a way to implement connect without stating the dst_type? thanks again > On Mon, Dec 28, 2020 at 2:33 PM Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote: >> >> Hi Ordit, >> >> > Up till now the peripheral device we worked against was configured >> > with public address, >> > now it might also be random (both BDADDR_LE_RANDOM, BDADDR_LE_PUBLIC). >> > The type of address is needed to connect correctly to the device >> > (using l2cap_connect). >> > >> > How can I get the address type from the scan report? >> > I'm currently using bluetoothctl, which seems not to expose this >> > information in Device1 interface. >> > thanks in advance! and happy holidays >> >> it is in the Device1 interface for the Identity Address. Why are you going to connect an L2CAP socket in the first place for a LE device. >> >> Regards >> >> Marcel >> > > > -- > --