0

I am able to connect to a BLE device. Then into the command services Writable Characteristics, I am writing a command. OnCharacteristicsWrite returns the GattStatus as Success as well. Where can I obtain the response to the command?

Midhun Kumar
  • 549
  • 5
  • 23
  • In Bluetooth Low energy there are notifications, read and write operations. Check with the BLE device with which you connect, to know what operations it support. Usually you receive data from BLE peripheral devices in the form of notifications. – Ravi Nov 23 '17 at 08:04
  • @Ravi So when we write commands into the Write Characteristic of a Service, the Read Characteristic should already have the notification enabled so that we get the response data there? – Midhun Kumar Nov 23 '17 at 09:16
  • Reading characteristic and receiving notifications are the only ways to receive data from BLE devices. Notifications are a way that BLE devices can notify data to MobileApp. If your BLE device supports notifications, enable them before you write characteristics. You can use nRFConnect android app for reference to see what are all your BLE device supports. – Ravi Nov 23 '17 at 16:37

0 Answers0