Skip to content

nihilanth41/ble

Repository files navigation

4970

Bluetooth LE

First time

bluetoothctl
agent on 
default-agent
power on 
scan on
[ get device MAC address ]
scan off
pair <addr> 
connect <addr>

Attempt to connect

sudo bluetoothctl 2>&1 | tee /tmp/bluetooth.out
connect DC:2A:9C:FB:8C:D3 
select-attribute /org/bluez/hci0/dev_DC_2A_9C_FB_8C_D3/service0021/char0022
notify on

Parse output

./parse.pl sample_input/bluetooth.out

Other parsing option

awk -F ":" '{print $3}' bluetooth.out > bt.values

Links

Archlinux Wiki - Bluetooth Bluetooth LE on Raspberry Pi
Bluetooth LE Quick Start
Bluetooth Low Energy Introduction
PerlMonks hex2ascii

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages