mirror of https://github.com/ARMmbed/mbed-os.git
reset transport last and reset the default chars in gatt server
parent
fbe04097c7
commit
e9ac83a92c
|
@ -171,9 +171,6 @@ ble_error_t BLEInstanceBase::shutdown()
|
|||
return BLE_ERROR_INITIALIZATION_INCOMPLETE;
|
||||
}
|
||||
|
||||
initialization_status = NOT_INITIALIZED;
|
||||
_hci_driver->terminate();
|
||||
|
||||
#if BLE_FEATURE_GATT_SERVER
|
||||
getGattServer().reset();
|
||||
#endif
|
||||
|
@ -185,6 +182,9 @@ ble_error_t BLEInstanceBase::shutdown()
|
|||
getGap().reset();
|
||||
_event_queue.clear();
|
||||
|
||||
initialization_status = NOT_INITIALIZED;
|
||||
_hci_driver->terminate();
|
||||
|
||||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
|
|
|
@ -883,6 +883,7 @@ ble_error_t GattServer::reset(ble::GattServer* server)
|
|||
|
||||
serviceCount = 0;
|
||||
characteristicCount = 0;
|
||||
default_services_added = false;
|
||||
|
||||
dataSentCallChain.clear();
|
||||
dataWrittenCallChain.clear();
|
||||
|
|
Loading…
Reference in New Issue