add _disconnect_cb() and _connect_cb() to BLEService

integrate BLEService.addToGatt() to begin()
This commit is contained in:
hathach committed 2017-07-26 11:07:53 +07:00
1 parent ca2d6f3dce
commit 5259a71ebb
9 files changed
+44 -19

No files matched your search

@@ -133,7 +133,8 @@ err_t BLEHidGeneric::begin(void)
{
VERIFY ( (_report_map != NULL) && _report_map_len, NRF_ERROR_INVALID_PARAM);
VERIFY_STATUS( this->addToGatt() );
// Invoke base class begin()
VERIFY_STATUS( BLEService::begin() );
// Protocol Mode
if ( _boot_keyboard || _boot_mouse )