@Override
public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic) {
String s = (String) ba.raiseEvent(BlePeripheral3.this, eventName + "_getdata", new Object[]{characteristic.getUuid().toString()});
BA.Log("Response: " + s);
gattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, 0, characteristic.getValue() == null ? new byte[8] : characteristic.getValue());
}