Mi Flora plant sensor

My system was missing gatttool. So I compiled it:

  1. Download bluez wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.9.tar.gz
  2. Untar the archive: tar xvf bluez-5.9.tar.gz
  3. Go to the new directory cd bluez-5.9
  4. Install dependencies: sudo apt-get update && sudo apt-get install -y gcc make libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
  5. Execute ./configure
  6. Run the command make
  7. Copy gatttool sudo cp attrib/gatttool /usr/bin/

Now Mi Flora works.

1 Like