Relative Content

Tag Archive for androidbluetooth-lowenergy

code 137 is AUTHORIZATION_FAILED. bonding error popup is taking more than 1 min

@Override public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) { Log.d(“PesBleDevice”, “onCharacteristicRead, UUID : ” + characteristic.getUuid().toString() + “;status : ” + status); if (characteristic.getUuid().toString().equalsIgnoreCase(PES_DEVICE_CHARS_SERIAL_NUMBER_UUID)) { if (status == BluetoothGatt.GATT_SUCCESS) { try { byte[] data = characteristic.getValue(); String serialNumber = new String(data, StandardCharsets.UTF_8); //registrationBLECommand(); Log.e(“PesBleDevice”, “onCharacteristicRead : Serial Number Read = ” + serialNumber); Timber.tag(“PES”).i(“PesBleDevice-> […]

onCharacteristicChanged method is not called in android BLE

Hello in the below code device MQTT data not showing with Latest FW and differences between old and new FW .onCharacteristicChanged method is not called .setCharacteristicNotification called after that not calling anything can anyone help me