Skip to content

Instantly share code, notes, and snippets.

@dejanb
Last active February 1, 2022 14:16
Show Gist options
  • Save dejanb/735f3d004bae37565d03166c9aaa81a7 to your computer and use it in GitHub Desktop.
Save dejanb/735f3d004bae37565d03166c9aaa81a7 to your computer and use it in GitHub Desktop.
BlueZ on Pi
#!/usr/bin/env bash
git clone https://github.com/json-c/json-c.git
mkdir json-c-build
cd json-c-build
sudo apt install cmake
cmake ../json-c
make
sudo make install
sudo apt-get install -y git bc libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev autoconf
sudo apt-get install libtool
git://git.kernel.org/pub/scm/libs/ell/ell.git
git clone https://github.com/bluez/bluez.git
cd bluez
autoreconf -fi
./configure --enable-mesh --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
make
sudo make install
sudo systemctl disable bluetooth
sudo systemctl stop bluetooth
sudo systemctl enable bluetooth-mesh
sudo systemctl start bluetooth-mesh
cp tools/mesh-gatt/prov_db.json ~/.config/meshcfg/
cp tools/mesh-gatt/local_node.json ~/.config/meshcfg/
cp tools/mesh-gatt/prov_db.json ~/.config/meshctl/
cp tools/mesh-gatt/local_node.json ~/.config/meshctl/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment