Initial MicroPython BLE support (GATTS)
This implements the first step towards MicroPython BLE support.
It supports to:
- Read and set (temporarily) the device name
- Read BLE MAC address
- Close a connection and start advertising
- Get notified if a connection is opened or closed
- Dynamically define new services
- Read and write attributes on the local ATT server
- Notify and indicate to the peer ATT client
It does not support to:
- Get notified if an indication was acknowledged
- Modify the advertising data
Contributes to #8 (closed)
Edited by schneider
Merge request reports
Activity
added 13 commits
-
783d0659...9a70773d - 9 commits from branch
master
- c49079d1 - bump mp to 1.13
- a3a69ab5 - mp v1.13 fixes
- b9309f1f - some mp ble support
- 5e0e2955 - some more mp ble support
Toggle commit list-
783d0659...9a70773d - 9 commits from branch
added 10 commits
- a1a71317 - change(ble): Add epic call to add a characterstic
- 52a623ac - change(ble): Don't allocate if not needed when resizing
- fd33d687 - change(ble): Create dyn service together with group
- bf67d241 - change(ble): Add epic call to add descriptors
- dc59ee22 - change(ble): add epic call to set an attribute
- 29634edd - feat(mp-ble): Allow to check if module is initialized
- c8b45665 - feat(mp-ble): Raise not implemented function
- a81efef6 - feat(mp-ble): Allow to register descriptors
- 99e57130 - change(mp-ble): Cleanup cccd section
- 77654a51 - chore(mp-ble): remove dead code
Toggle commit listadded 24 commits
- 8c2c9818 - some mp ble support
- 972d01ca - some more mp ble support
- 619c8136 - feat(mp-ble): Drop connection when starting adv
- d0256b1d - fix(ble): Make ble uart more useful
- ee7a14ad - change(ble): correctly handle connections in ble uart
- 900cb8a4 - change(ble): More reliability for ble uart
- 3ec5d50b - change(ble): Better ble uart performance
- 3ea8ac7d - change(ble): Let MP handle its own GATT DB
- 9200f8aa - change(ble): Use single event queue
- af50b487 - change(ble): add dedicated dm event for api
- de4eeea1 - change(ble): Add epic call to add a characterstic
- b595c6fb - change(ble): Don't allocate if not needed when resizing
- f2bfec15 - change(ble): Create dyn service together with group
- 6ee66d5c - change(ble): Add epic call to add descriptors
- c935d945 - change(ble): add epic call to set an attribute
- 990cce6a - feat(mp-ble): Allow to check if module is initialized
- ff63114f - feat(mp-ble): Raise not implemented function
- 9b9ae94c - feat(mp-ble): Allow to register descriptors
- 4fc58f11 - change(mp-ble): Cleanup cccd section
- 22610efe - chore(mp-ble): remove dead code
- 5ea4a45d - feat(mp-ble): Allow to read mac address
- ef5ac3e8 - feat(mp-ble): Allow to set/get device name
- d61c71c8 - feat(mp-ble): Allow to close current connection
- f4edf44a - chore(ble): epic api cleanup
Toggle commit listadded 16 commits
- 13bdf80a - change(ble): Use single event queue
- 971aaa6a - change(ble): add dedicated dm event for api
- 3cfcbcb2 - change(ble): Add epic call to add a characterstic
- 55f10ad6 - change(ble): Don't allocate if not needed when resizing
- 43aeb043 - change(ble): Create dyn service together with group
- 0cdfa2b5 - change(ble): Add epic call to add descriptors
- 24cd4155 - change(ble): add epic call to set an attribute
- 12cf97fe - feat(mp-ble): Allow to check if module is initialized
- 053a3523 - feat(mp-ble): Raise not implemented function
- e8b6a2c5 - feat(mp-ble): Allow to register descriptors
- 4396b935 - change(mp-ble): Cleanup cccd section
- 9a5e621d - chore(mp-ble): remove dead code
- 0a8142ab - feat(mp-ble): Allow to read mac address
- 92227700 - feat(mp-ble): Allow to set/get device name
- 43bca5af - feat(mp-ble): Allow to close current connection
- 7331f59f - chore(ble): epic api cleanup
Toggle commit listadded 4 commits
Toggle commit listadded 31 commits
- 53865578 - change(micropython): Bump to MicroPython v1.13
- 9d133929 - fix(pycardium): fixes to support MicroPython v1.13
- 6f8d3f1d - feat(mp-ble): Some initial MicroPython BLE hacks
- a6f4e196 - feat(mp-ble): More MicroPython BLE hacks
- 868a04f2 - feat(mp-ble): Drop connection when starting adv
- a9bd7192 - fix(ble): Make ble uart more useful
- 15e030fc - change(ble): correctly handle connections in ble uart
- ee5e69a4 - change(ble): More reliability for ble uart
- 765a0fc4 - change(ble): Better ble uart performance
- bd36d553 - change(ble): Let MP handle its own GATT DB
- fe521b10 - change(ble): Use single event queue
- 22a2b196 - change(ble): add dedicated dm event for api
- 153b0c92 - change(ble): Add epic call to add a characterstic
- 7a23ff81 - change(ble): Don't allocate if not needed when resizing
- 3124bcc5 - change(ble): Create dyn service together with group
- 0b0d862d - change(ble): Add epic call to add descriptors
- f35be6a7 - change(ble): add epic call to set an attribute
- 82034336 - feat(mp-ble): Allow to check if module is initialized
- e3430744 - feat(mp-ble): Raise not implemented function
- d3a20187 - feat(mp-ble): Allow to register descriptors
- 5102b854 - change(mp-ble): Cleanup cccd section
- b08706df - chore(mp-ble): remove dead code
- 62a76860 - feat(mp-ble): Allow to read mac address
- adec6f1f - feat(mp-ble): Allow to set/get device name
- 3297e2b1 - feat(mp-ble): Allow to close current connection
- e92b468d - chore(ble): epic api cleanup
- 57148d0d - change(ble): Update gatt api with service changed handling from upstream
- fc2810d7 - feat(mp-ble): Trigger GATT service changed after modifying DB
- 00aca40a - chore(ble): Minor cleanup of printfs, dead code and obsolete comments
- 3ed4e6fb - chore(ble): Make epic API headers look a bit nicer
- f378a51a - chore(serial): Make clear what goes where
Toggle commit listadded 1 commit
- 0ca30647 - change(ble): Don't report every successful notify/indicate to the console
Please register or sign in to reply