Searched refs:bat_svc (Results 1 – 1 of 1) sorted by relevance
155 hidd_le_service_t bat_svc; member216 esp_err_t err = esp_ble_gatts_create_attr_tab(_last_db, dev->bat_svc.gatt_if, BAS_IDX_NB, 0); in create_bat_db()388 dev->bat_svc.handle = param->add_attr_tab.handles[BAS_IDX_SVC]; in bat_event_handler()391 ESP_LOGV(TAG, "Battery CREAT_ATTR_TAB service handle = %d", dev->bat_svc.handle); in bat_event_handler()393 dev->hid_incl_svc.start_hdl = dev->bat_svc.handle; in bat_event_handler()394 dev->hid_incl_svc.end_hdl = dev->bat_svc.handle + BAS_IDX_NB - 1; in bat_event_handler()396 esp_ble_gatts_start_service(dev->bat_svc.handle); in bat_event_handler()650 esp_ble_gatts_stop_service(dev->bat_svc.handle); in ble_hid_stop_gatts()651 esp_ble_gatts_delete_service(dev->bat_svc.handle); in ble_hid_stop_gatts()652 esp_ble_gatts_app_unregister(dev->bat_svc.gatt_if); in ble_hid_stop_gatts()[all …]