anox1337

Results 11 comments of anox1337

This would be truly wonderfull. +1

Sure. ``` 2022-08-01 11:01:44.719 27020-27020/com.myapp I/BluetoothAdapter: STATE_ON 2022-08-01 11:01:44.720 27020-27020/com.myapp I/BluetoothAdapter: STATE_ON 2022-08-01 11:01:44.720 27020-27020/com.myapp I/BluetoothAdapter: STATE_ON 2022-08-01 11:01:44.721 27020-27020/com.myapp D/BluetoothLeScanner: Start Scan with callback 2022-08-01 11:01:44.724 27020-31927/com.myapp D/BluetoothLeScanner: onScannerRegistered()...

Just for the sake of completion this is the log output I get on a connection where the writing works. Just like all further connections until the target device is...

I started observing successful writes to a freshly booted bluetooth device. These are random and not reproducible, so this could be some kind of timing problem.

I did get like a 40% success rate after trying to clear the cache 2-3 seconds after connection. Which is not great but a whole lot better than not being...

I cannot see the write call failing anywhere. GattStatus is SUCCESS Inside BluetoothPeripheral.kt:914 ``` if (bluetoothGatt?.writeCharacteristic(characteristic) == true) { ``` This also returns TRUE. Everything looks like the data should...

> In your first screenshot (with the error) witeshark thinks you are writing to the CCC descriptor (2902). I guess that is wrong? ...because in the second screenshot it doesn't...

I hacked something that works 99%.... BluetoothPeripheral.kt:successfullyConnected() clear the cache before services are searched: ``` Handler(Looper.getMainLooper()).postDelayed({ scope.launch { clearServicesCache() discoverServices() } }, 300) ``` Of course this is not a...

>Ok, but why do you call clearServicesCache at all? I looked into my initial native android BLE implementation (based on [nordic semiconductor](https://github.com/NordicSemiconductor/Android-BLE-Library)) and found this call (probably due to a...

I was wondering what the suggested workflow currently is for creating Composables without the Preview? Just good old fashioned rebuild or creating the composables within androidApp and then after finishing,...