IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 490 forks source link

What types of advertising packet is bluepy able to scan ? #331

Open gcelosia opened 5 years ago

gcelosia commented 5 years ago

Hi,

As mentioned in the ScanEntry class documentation, bluepy (via the Scanner class) knows if a Bluetooth LE scanned device is "connectable" or "non-connectable" (using a boolean value set to True if the device supports connections, and False otherwise).

Actually, I'm wondering : what "connectable" and "non-connectable" advertising packets is bluepy able to scan ?

Indeed, as ADV_IND and ADV_DIRECT_IND are "connectable" and ADV_NONCONN_IND and ADV_SCAN_IND are "non-connectable" advertising packet types (as defined here), is bluepy able to do the difference between them ? Or, for instance, do "connectable" and "non-connectable" respectively mean only ADV_IND and ADV_NONCONN_IND advertising packet types for bluepy ?

Thanks in advance :).

G.C.