def hdl_wid_141(desc): MMI.reset() MMI.parse_description(desc) hdl1 = MMI.args[0] hdl2 = MMI.args[1] btp.gattc_read_multiple(btp.pts_addr_type_get(), btp.pts_addr_get(), hdl1, hdl2) return '0000'
def hdl_wid_57(desc): MMI.reset() MMI.parse_description(desc) hdl1 = MMI.args[0] hdl2 = MMI.args[1] if not hdl1 or not hdl2: logging.error("parsing error") return False btp.gattc_read_multiple(btp.pts_addr_type_get(), btp.pts_addr_get(), hdl1, hdl2) btp.gattc_read_multiple_rsp(True, True) return True