My system was missing gatttool. So I compiled it:
- Download bluez
wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.9.tar.gz
- Untar the archive:
tar xvf bluez-5.9.tar.gz
- Go to the new directory
cd bluez-5.9
- 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
- Execute
./configure
- Run the command
make
- Copy gatttool
sudo cp attrib/gatttool /usr/bin/
Now Mi Flora works.