def hdl_wid_60(desc): btp.gap_set_conn() btp.gap_set_gendiscov() bd_addr = btp.pts_addr_get() bd_addr_type = btp.pts_addr_type_get() btp.gap_direct_adv_on(bd_addr, bd_addr_type) return True
def hdl_wid_403(_: WIDParams): # Please perform the Directed Connection Establishment Procedure using RPA # then resolve the PTS address and connect with PTS. stack = get_stack() if not stack.gap.iut_has_privacy(): return False if stack.gap.peripheral.data: bd_addr = btp.pts_addr_get() bd_addr_type = btp.pts_addr_type_get() btp.gap_direct_adv_on(bd_addr, bd_addr_type, 0, 1) else: btp.gap_conn() return True