robotice-cc2541-device

Robotice driver for BLE - CC2541


License
Other
Install
pip install robotice-cc2541-device==0.0.2a

Documentation

CC2541 BLE

Robotice driver for SensorTag a Bluetooth Low Engery (BLE GATT) device

Requirements

  • pkg bluez
  • pkg gatttool
  • pip pexpect

Usage

Search device MAC

hcitool lescan
# LE Scan ...
# 78:A5:04:8C:25:A7 (unknown)
# 78:A5:04:8C:25:A7 (SensorTag)
# 78:A5:04:8C:25:A7 (unknown)
# 78:A5:04:8C:25:A7 (SensorTag)
# ...

Get sensor data

python cc2541 78:A5:04:8C:25:A7

in while cycle

python cc2541 78:A5:04:8C:25:A7 -r

Read More