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
..
2018-09-08 00:07:23 +10:00
2020-03-11 14:00:44 +11:00
2019-08-22 17:20:16 +10:00
2017-07-18 11:57:39 +10:00
2020-03-11 14:00:44 +11:00
2019-10-18 12:20:32 +11:00
2019-12-23 00:07:03 +11:00
2020-02-28 10:33:03 +11:00
2019-11-11 11:37:38 +11:00
2020-02-28 10:33:03 +11:00
2019-05-20 15:04:29 +10:00
2020-02-28 10:33:03 +11:00
2017-07-31 18:35:40 +10:00
2017-09-12 16:00:21 +10:00
2017-07-18 11:57:39 +10:00
2019-07-01 22:53:00 +10:00
2017-07-18 11:57:39 +10:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00
2020-02-28 10:33:03 +11:00
2018-03-10 00:59:43 +11:00
2019-07-01 17:10:12 +10:00
2020-03-10 01:53:42 +11:00
2020-03-11 14:00:44 +11:00
2020-03-11 14:00:44 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2017-07-31 18:35:40 +10:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2019-02-14 00:35:45 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2019-06-03 16:47:35 +10:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2019-10-29 12:12:37 +11:00
2020-02-28 10:33:03 +11:00
2019-10-29 14:17:29 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2018-06-06 14:33:42 +10:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00