Bluetooth-LE-Library---Android icon indicating copy to clipboard operation
Bluetooth-LE-Library---Android copied to clipboard

How to send something to device?

Open siadajpan opened this issue 8 years ago • 1 comments

Can you explain what to use to send some data over BT? Is it writing/reading characteristic that will do the trick?

Thanks

siadajpan avatar Mar 09 '16 20:03 siadajpan

  1. Clone library
  2. make public BluetoothGatt in BluetoothLeService
  3. bleCharacteristic.setValue(ALERT_LEVEL, BluetoothGattCharacteristic.FORMAT_UINT8, 0); mBluetoothLeService.mBluetoothGatt.writeCharacteristic(bleCharacteristic)

yusufonderd avatar Aug 07 '17 11:08 yusufonderd