From 59d4e95820cc01a5a85457c001cf59852cd36854 Mon Sep 17 00:00:00 2001 From: mvadu <8618235+mvadu@users.noreply.github.com> Date: Sun, 25 Jun 2023 23:36:05 -0400 Subject: [PATCH] Add additional checks for BLE data also update docker file for Bookworm --- Dockerfile | 3 ++- mi_atc_reader.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc7c34d..622d424 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ RUN apt-get update \ git \ libbluetooth3 \ libbluetooth-dev \ - python-dev \ + #python-dev \ + python-dev-is-python3 \ && pip install -r requirements.txt \ && pip install git+https://github.com/pybluez/pybluez \ && git clone https://github.com/colin-guyon/py-bluetooth-utils.git --depth=1 \ diff --git a/mi_atc_reader.py b/mi_atc_reader.py index 1bcaa89..4ccbd1a 100644 --- a/mi_atc_reader.py +++ b/mi_atc_reader.py @@ -56,7 +56,10 @@ def le_advertise_packet_handler(mac, adv_type, data, rssi): Both atc1441 and pvvx forks send data on GATT Service 0x181A Environmental Sensing """ exit_stat = not exit_event.is_set() - if struct.unpack(' 6 and struct.unpack('