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
..
2017-11-10 00:09:43 +02:00
2020-01-12 13:44:59 +11:00
2017-07-02 15:37:31 +03:00
2017-07-02 15:37:31 +03:00
2020-01-06 22:17:29 +11:00
2020-01-12 13:44:59 +11:00
2020-02-10 23:04:15 +11:00
2017-07-02 15:37:31 +03:00
2019-10-23 11:43:01 -05:00
2019-12-04 15:02:54 +11:00
2019-09-04 15:35:09 +10:00
2019-09-04 15:05:03 +10:00
2020-01-06 22:25:35 +11:00
2019-03-14 07:29:04 +11:00
2020-01-12 13:44:59 +11:00
2019-12-04 15:02:54 +11:00
2019-06-03 00:42:24 +10:00
2019-11-07 14:47:11 +11:00
2017-08-29 00:08:40 +03:00
2018-09-26 15:21:10 +10:00
2018-07-31 23:40:06 +10:00
2019-12-04 15:02:54 +11:00
2020-01-06 22:50:58 +11:00
2017-04-18 15:27:37 +10:00
2017-07-02 15:37:31 +03:00
2019-07-17 16:09:32 +10:00
2018-09-27 17:23:42 +10:00
2019-10-16 14:08:28 +11:00
2018-09-27 17:23:42 +10:00
2018-09-27 17:23:42 +10:00
2018-09-27 17:23:42 +10:00
2019-12-04 15:02:54 +11:00
2019-12-04 15:02:54 +11:00
2019-12-04 15:02:54 +11:00
2019-09-03 23:25:45 +10:00
2019-12-04 15:02:54 +11:00
2019-12-04 23:18:17 +11:00
2018-07-18 15:47:44 +10:00
2019-12-04 15:02:54 +11:00
2019-12-04 15:02:54 +11:00
2018-10-19 17:31:59 +11:00
2019-12-04 23:18:17 +11:00
2019-12-04 15:02:54 +11:00
2016-06-08 16:21:28 +03:00
2018-07-18 15:47:44 +10:00
2018-03-15 15:50:51 +11:00
2019-12-04 15:02:54 +11:00
2019-05-07 13:56:42 +10:00
2019-12-04 15:02:54 +11:00
2019-12-04 15:02:54 +11:00
2020-01-12 13:44:59 +11:00
2019-10-22 16:40:58 +11:00
2017-08-17 09:25:51 +03:00
2020-03-11 14:00:44 +11:00
2018-06-26 14:29:22 +10:00
2019-05-06 18:09:48 +10:00
2020-01-12 13:44:59 +11:00
2017-12-03 15:50:37 +02:00
2019-10-16 14:08:28 +11:00
2017-07-02 15:37:31 +03:00
2018-10-18 12:39:25 +11:00
2018-02-15 11:37:48 +11:00
2020-01-22 16:37:31 +11:00
2020-01-12 13:44:59 +11:00
2020-01-12 13:44:59 +11:00
2020-01-12 13:44:59 +11:00
2018-03-15 15:50:51 +11:00
2020-01-12 13:44:59 +11:00
2017-11-30 14:56:08 +11:00
2020-01-12 13:44:59 +11:00
2015-10-21 15:30:56 +02:00