Bluetooth LE Gatt Example step by step
Bluetooth LE Gatt Example step by step Last post demonstrate the Android Bluetooth Le Gatt example code with Arduino/Genuino 101. This post start to (TRY to) implement my own Bluetooth LE Gatt Example, step-by-step. The aim of the examples (in coming series) are scan BLE device, find and link with specified device Genuino 101 (programmed with "LEDCB", refer previous post), and read and write characteristic of the device to turn ON/OFF the Genuino 101 on-board LED. The main reference material are: - Android Developers Guide > Bluetooth Low Energy - The Android example code - BluetoothLeGatt. (The example in last post) In this first step, create a new project in Android Studio, named AndroidBleGatt. In my example (in coming post) I will scan LE device using BluetoothLeScanner (Added in API level 21) instead of calling deprecated startLeScan() and stopLeScan() methods as in the BluetoothLeGatt example, so specify the Min Sdk Version of API 21. Edit AndroidManifest.xm...