Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
add non-root use notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dugite-code committed May 21, 2019
1 parent 364e3a8 commit 410748e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,25 @@ BLE reverse engineering from [openScale](https://github.com/oliexdev/openScale/w
## Requirements
gatttool

### Gatttool Notes:

To grant non-root access to BLE, assuming you are using a user named `miscale` on debian/ubuntu:

edit `/etc/dbus-1/system.d/bluetooth.conf`

```
<policy user="miscale">
<allow own="org.bluez"/>
<allow send_destination="org.bluez"/>
<allow send_interface="org.bluez.GattCharacteristic1"/>
<allow send_interface="org.bluez.GattDescriptor1"/>
<allow send_interface="org.freedesktop.DBus.ObjectManager"/>
<allow send_interface="org.freedesktop.DBus.Properties"/>
</policy>
```

Then restart the dbus `systemctl restart dbus`

# Basic usage
From command line:
`miscale.py -m <MAC Address> [OPTION]`
Expand Down

0 comments on commit 410748e

Please sign in to comment.