Open ryankurte opened 2 years ago
bluer does support ConnectDevice
which when enabled via --experimental
in bluetoothd.system
results in a dbus method error..
there's also l2_bdaddr_type
in struct sockaddr_l2
when opening sockets, but i can't see how to use that API from here
Describe the bug when connecting to a
YWK-J1
BLE SPO2 sensorbtleplug@0.9.1
inconsistently returns services in thePeripheralProperties
object anddiscover_services()
fails to discover any services or characteristics.from messing with
gatttool
i think this is because the device will only communicate when connected with an LE address type ofrandom
instead ofpublic
,random
is returned in the properties option but doesn't seem to be used and i can't seem to find how to specifyBDADDR_LE_RANDOM
here or via bluez-dbus.Expected behavior
Discovery should list the characteristics available on the device, per
nrf connect
orgatttool
:Actual behavior
Successful properties:
Unsuccessful properties:
regardless of properties, no services or characteristics are discovered.
Additional context code is here.
gattool
andnrf connect
both function) or a non-standard BLE implementation that these tools compensate for.btleplug@0.8.1
which i had used previously with no change