def test_btp_GATT_CL_GAD_3(self): """ Verify that a Generic Attribute Profile client can find include service declarations within a specified service definition on a server. """ connection_procedure(self, central=self.iut1, peripheral=self.iut2) btp.gattc_disc_prim_svcs(self.iut1, self.iut2.stack.gap.iut_addr_get()) db = GattDB() btp.gattc_disc_prim_svcs_rsp(self.iut1, db) for svc in db.get_services(): start_hdl, end_hdl = svc.handle, svc.end_hdl btp.gattc_find_included(self.iut1, self.iut2.stack.gap.iut_addr_get(), start_hdl, end_hdl) btp.gattc_find_included_rsp(self.iut1, db) db.print_db() self.assertIsNotNone(db.find_inc_svc_by_uuid(PTS_DB.INC_SVC)) disconnection_procedure(self, central=self.iut1, peripheral=self.iut2)
def hdl_wid_15(desc): btp.gattc_find_included(btp.pts_addr_type_get(), btp.pts_addr_get(), '0001', 'FFFF') btp.gattc_find_included_rsp(True) return True
def hdl_wid_15(desc): btp.gattc_find_included(btp.pts_addr_type_get(), btp.pts_addr_get(), None, None) return True