diff --git a/pyproject.toml b/pyproject.toml index 2c6abc8..26ac1ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "infuse_iot" -version = "0.2.0" +version = "0.2.1" authors = [{name = "Embeint Holdings Pty Ltd", email = "support@embeint.com"}] description = "Infuse-IoT Platform python package" classifiers = [ diff --git a/src/infuse_iot/tools/localhost.py b/src/infuse_iot/tools/localhost.py index 67dde86..e17ef8d 100644 --- a/src/infuse_iot/tools/localhost.py +++ b/src/infuse_iot/tools/localhost.py @@ -42,9 +42,9 @@ def add_parser(cls, parser): def __init__(self, args): self._data_lock = threading.Lock() - self._columns = {} - self._data = {} - self._port = args.port + self._columns: dict[str, dict] = {} + self._data: dict[int, dict] = {} + self._port: int = args.port self._client = LocalClient(default_multicast_address(), 1.0) self._decoder = TDF() @@ -191,6 +191,9 @@ def recv_thread(self) -> None: self._data[source.infuse_id] = { "infuse_id": f"0x{source.infuse_id:016x}", } + # Set default application ID + self._data[source.infuse_id]["ANNOUNCE"] = {"application": "Unknown"} + self._data[source.infuse_id]["time"] = InfuseTime.utc_time_string(time.time()) if source.interface == interface.ID.BT_ADV: addr_bytes = source.interface_address.val.addr_val.to_bytes(6, "big")