Monoista

Logo

View My GitHub Profile

3 May 2021

TI SensorTag and Raspberry Pi

confirm that bluetooth service is running

sudo service bluetooth status

scan for BLE devices

sudo hcitool lescan
[MAC address] (unknown)
[MAC address] (unknown)
[MAC address] CC2650 SensorTag
[MAC address] (unknown)
[MAC address] (unknown)

install bluepy - Python interface to BLE

sudo apt-get install libglib2.0-dev
cd Development
git clone https://github.com/IanHarvey/bluepy.git
cd bluepy/bluepy
sudo pip install bluepy

get all sensor data from SensorTag

python sensortag.py [MAC address] --all
tags: raspberry-pi - sensortag