ble
ble copied to clipboard
API to abstract working with Bluetooth Smart Controllers
In BLE there are 4 types of addresses: - Public MAC address: - Random static - Random unresolvable - Random resolvable According to the BLE spec v4.2 in Vol 6,...
The current GattClient API does not provide any way to catch a failure during a GattClient procedure. The following procedure miss this feature: - Primary service discovery - Characteristic discovery...
It would be useful if (at least) onLinkSecured could have multiple callbacks, since different modules could depend on knowing the security status of the connection.
i.e. it should be possible to say: `ble.gap().getAdvertisingParams().setInterval(...).setWhiteList(...)`...
some sub-types and constants applicable to GapAdvertisingParams could be extracted to BLEProtocol.h
`AdvertisingType_t` can encapsulated into a struct and possibly be moved. we can create types for advertising interval and timeout. constants defining min and max for the interval and timeout could...
without this information, a potential central may not be able to connect to a peripheral due to mismatched address-type.
The description of `Gap::GapState_t` is as follows: ``` /* Describes the current state of the device (more than one bit can be set). */ ``` Shouldn't this structure contain information...
GapScanningParams tries to expose the user to a comprehensible API to set different scan parameters such as scan window, scan interval, etc. The user can set the scan window and...
GapAdvertisingParams and GapScanningParams use `MSEC_TO_ADVERTISEMENT_DURATION_UNITS()` and `MSEC_TO_SCAN_DURATION_UNITS()` respectively to convert from milliseconds to units of 0.625. However, these two functions do exactly the same operation: ``` return (durationInMillis * 1000)...
Some write operations are missing from the current implementation: - signed write command - write blob operations: - prepare write request - execute (commit) write request