def notification_handler(handle: int, data: bytes) -> None:
    logger.info(f"Received response at handle={handle!r}: {hexlify(data, ':')!r}")
    if ((client.services.characteristics[handle].uuid == response_uuid) and (data[2] == 0)):
        logger.info('Command sent successfully')
    else:
        logger.error('Unexpected response')
    event.set()
def notification_handler(handle: int, data: bytes) -> None:
    logger.info(f"Received response at handle={handle!r}: {hexlify(data, ':')!r}")
    if ((client.services.characteristics[handle].uuid == response_uuid) and (data[2] == 0)):
        logger.info('Command sent successfully')
    else:
        logger.error('Unexpected response')
    event.set()