summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/btstack/modbluetooth_btstack.c
Commit message (Collapse)AuthorAge
...
* extmod/btstack: Implement more robust init/deinit sequencing.Jim Mussared2020-04-29
|
* extmod/modbluetooth: Don't hold atomic section during mp_sched_schedule.Jim Mussared2020-04-29
| | | | | Because, for example, on unix the atomic section isn't re-entrant, and mp_sched_schedule() will try to re-acquire the atomic section.
* extmod/btstack: Pass through SCAN_RSP events.Damien George2020-04-07
| | | | | | | | The latest version of BTstack has a bug fixed so that it correctly configures scan parameters if they are set right after activating the stack. This means that BLE.gap_scan() will correctly set the scanning to passive and so SCAN_RSP events are not passed through, so we don't need to explicitly filter them in our bindings.
* extmod/modbluetooth: Change scan result's "connectable" to "adv_type".Damien George2020-03-11
| | | | | | | | | | | | | | | | | | | | | | | 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.
* extmod/nimble: Clarify active state and check for active in all methods.Jim Mussared2020-03-11
| | | | | | | This commit ensures that the BLE stack is active before allowing operations that may otherwise crash if it's not active. It also clarifies the state better (adding the "stopping" state) and renames mp_bluetooth_is_enabled to the more self-explanatory mp_bluetooth_is_active.
* extmod/btstack: Implement notifications/indications for GATT clients.Damien George2020-03-10
| | | | Work done in collaboration with Jim Mussared aka @jimmo.
* extmod/btstack: Implement scan and gatt client, connect and disconnect.Damien George2020-03-10
| | | | Work done in collaboration with Jim Mussared aka @jimmo.
* extmod/btstack: Implement gatts_db for btstack.Damien George2020-03-10
| | | | Work done in collaboration with Jim Mussared aka @jimmo.
* extmod/btstack: Implement service registration.Damien George2020-03-10
| | | | Work done in collaboration with Jim Mussared aka @jimmo.
* extmod/btstack: Implement advertising.Damien George2020-03-10
| | | | Work done in collaboration with Jim Mussared aka @jimmo.
* extmod/btstack: Add empty modbluetooth implementation.Damien George2020-03-10
Work done in collaboration with Jim Mussared aka @jimmo.