diff --git a/README.md b/README.md index 54e60b8..d2a635b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,12 @@ pip install gattlib ``` this requires Bluez 5.37 or higher to be installed as well. -Gattlib requires libbluetooth-dev and libboost-python-dev to be available as well. +Gattlib dependencies: +``` +sudo apt-get install libboost-python-dev +sudo apt-get install libboost-thread-dev +sudo apt-get install libglib2.0-dev +``` To run this as non-root run the following ``` diff --git a/miflora.py b/miflora.py index 7ebfe76..0d4efb0 100644 --- a/miflora.py +++ b/miflora.py @@ -27,7 +27,8 @@ requester = GATTRequester(address, True) #Read battery and firmware version attribute data=requester.read_by_handle(0x0038)[0] - battery, firmware = unpack('