ARMmbed / ble-nrf51822

Nordic stack and drivers for the mbed BLE_API
Other
46 stars 51 forks source link

Disable GattClient features when using S110 SoftDevice #38

Closed jpbrucker closed 8 years ago

jpbrucker commented 8 years ago

S110 compatibility is already present, but this patch adds proper handling of observer/central related features:

Example: for an application that acts as both a central and a peripheral, using S110 will make the ble.gap().startScan() call return BLE_ERROR_NOT_IMPLEMENTED, and advertisement features will continue running normally. In addition, with GCC, this patch will free 344 bytes of RAM and 2504 bytes of flash.