mirror of https://github.com/ARMmbed/mbed-os.git
BLE - Register the Att call handler whenever the GATT_SERVER is available.
parent
77511c3983
commit
b21e1d23d5
|
@ -509,11 +509,14 @@ void BLE::stack_setup()
|
||||||
DmConnRegister(DM_CLIENT_ID_APP, BLE::device_manager_cb);
|
DmConnRegister(DM_CLIENT_ID_APP, BLE::device_manager_cb);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if BLE_FEATURE_GATT_SERVER
|
||||||
|
AttConnRegister(BLE::connection_handler);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BLE_FEATURE_ATT
|
#if BLE_FEATURE_ATT
|
||||||
#if BLE_FEATURE_GATT_CLIENT
|
#if BLE_FEATURE_GATT_CLIENT
|
||||||
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
|
AttRegister((attCback_t) ble::pal::vendor::cordio::CordioAttClient::att_client_handler);
|
||||||
#else
|
#else
|
||||||
AttConnRegister(BLE::connection_handler);
|
|
||||||
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
|
AttRegister((attCback_t) ble::vendor::cordio::GattServer::att_cb);
|
||||||
#endif // BLE_FEATURE_GATT_CLIENT
|
#endif // BLE_FEATURE_GATT_CLIENT
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue