def hdl_wid_143(desc): zephyrctl = get_iut() zephyrctl.wait_iut_ready_event() btp.core_reg_svc_gap() btp.gap_read_ctrl_info() return True
def iut_reset(): # Wait a few seconds before resetting so that all settings are stored on the flash # Some models save from a callback that is triggered after a few seconds. time.sleep(5) zephyrctl = btp.get_iut_method() zephyrctl.wait_iut_ready_event() btp.core_reg_svc_gap() btp.core_reg_svc_mesh() btp.gap_read_ctrl_info() btp.mesh_init()
def hdl_wid_90(desc): stack = get_stack() ad = [] sd = [] if stack.gap.name: ad.append((AdType.name_short, hexlify(stack.gap.name))) if stack.gap.manufacturer_data: sd.append((AdType.manufacturer_data, stack.gap.manufacturer_data)) btp.gap_adv_off() btp.gap_read_ctrl_info() btp.gap_set_conn() btp.gap_set_gendiscov() btp.gap_adv_ind_on(ad=ad, sd=sd) return True
def preconditions(iutctl): btp.core_reg_svc_gap(iutctl) btp.core_reg_svc_gatt(iutctl) iutctl.stack.gap_init() iutctl.stack.gatt_init() btp.gap_read_ctrl_info(iutctl)
def test_case_check_health(iut): btp.gap_read_ctrl_info(iut)