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 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)