2

how can I send Data to BLE device. I already Connected to ble device but don't know how to send and receive data Via Gatt Callback.

Michael Kotzjan
  • 2,093
  • 2
  • 14
  • 23
  • 2
    The exact API (functions) depends on OS but common way to send data is to write to the writable characteristic value. There are 2 way to receive data: read from readable characteristic or subscribe to notifications or indications. Detailed description can be found by this link: https://www.btframework.com/ble.htm – Mike Petrichenko May 20 '21 at 06:03
  • Im using Android. I have managed to connect the two device. All I need now is to read and write data on BLE. – Feather - Clocking System May 21 '21 at 07:04
  • Unfortunately I am not familiar with Android development but fast Google search gives this link: https://github.com/android/connectivity-samples/tree/master/BluetoothLeGatt – Mike Petrichenko May 21 '21 at 08:51