circuitpython/extmod/nimble
Damien George dd0bc26e65 extmod/modbluetooth: Change scan result's "connectable" to "adv_type".
This commit changes the BLE _IRQ_SCAN_RESULT data from:

    addr_type, addr, connectable, rssi, adv_data

to:

    addr_type, addr, adv_type, rssi, adv_data

This allows _IRQ_SCAN_RESULT to handle all scan result types (not just
connectable and non-connectable passive scans), and to distinguish between
them using adv_type which is an integer taking values 0x00-0x04 per the BT
specification.

This is a breaking change to the API, albeit a very minor one: the existing
connectable value was a boolean and True now becomes 0x00, False becomes
0x02.

Documentation is updated and a test added.

Fixes #5738.
2020-03-11 14:00:44 +11:00
..
bsp extmod/nimble: Add nimble bindings. 2019-10-01 09:51:02 +10:00
hal stm32: Refactor bluetooth stack/hci/driver bindings. 2020-03-10 01:53:42 +11:00
nimble stm32: Refactor Bluetooth HCI RX to be independent of transport layer. 2020-03-10 01:53:42 +11:00
syscfg extmod/modbluetooth: Increase maximum connections from 1 to 4. 2019-10-15 17:20:25 +11:00
modbluetooth_nimble.c extmod/modbluetooth: Change scan result's "connectable" to "adv_type". 2020-03-11 14:00:44 +11:00
modbluetooth_nimble.h extmod/nimble: Clarify active state and check for active in all methods. 2020-03-11 13:01:35 +11:00
nimble.mk stm32: Refactor bluetooth stack/hci/driver bindings. 2020-03-10 01:53:42 +11:00