Hello Team,
I have developed a sample Android application to use and control Nordic Thingy 52. I am able to control LED (Constant, Blink, Intensity). But I am not getting notifications about sensor info. Using the TX I am writing following into Bridge :
byte[] sensor_info = {0x00, 0x01, 0x02}; mWriteCharacteristic.setValue(sensor_info); mBTGattInst.writeCharacteristic(mWriteCharacteristic);
before writing this command, in my onServicesDiscovered I am enabling notifications for TX as :
mBleUARTService = mBTGattInst.getService(UUID_UART); if (mBleUARTService == null) { Log.e("onServicesDiscovered", CHARACTERISTIC_RX.toString() + " is not supported"); return; } else { mReadCharacteristic = mBleUARTService.getCharacteristic(CHARACTERISTIC_RX); mWriteCharacteristic = mBleUARTService.getCharacteristic(CHARACTERISTIC_TX); } mBTGattInst.setCharacteristicNotification(mWriteCharacteristic, true);
my project is available in Git : github.com/.../Thingy52AndroidApp