# -*- coding: utf-8 -*- # # SPDX-FileCopyrightText: © 2021 Stefanie Tellex # SPDX-License-Identifier: MIT """Driver for FreeStyle Freedom Lite devices. Supported features: - get readings - assumes the device uses mg/dL for the glucose unit - get date and time; - get serial number and software version. Expected device path: /dev/ttyUSB0 or similar serial port device. Further information on the device protocol can be found at https://protocols.glucometers.tech/abbott/freestyle-lite.html """ import datetime import logging import re from typing import Generator, NoReturn, Sequence from glucometerutils import common, driver, exceptions from glucometerutils.support import serial _CLOCK_INIT_RE = re.compile( r"^(?P[A-Z][a-z]{2}) (?P[0-9]{2}) (?P[0-9]{4}) " r"(?P