Results 123 comments of kai-morich

looks good, but instead of `sleep` I recommend `postDelayed` to not block the UI thread and a timeout + cancel button

the default BLE payload size is 20 byte. Only some devices can handle larger size. This is negotiated during connection setup. Longer data is split into appropriate chunks.

the bluetooth stack only knows about these 20byte packets. you have to reconstruct your logical request by knowing your protocol

the app uses a foreground-service + notification to prevent termination by Android. if it is still terminated on somy devices the app can hardly do anything. could it be stopped...

I recommend to create distinct service instances. Else you would have to enhance the service class to manage multiple sockets

nRF24L01 can operate as BLE device, so should work

SPP is a protocol defined for bluetooth classic. For BLE there is no standard, but various vendors have predefined UUIDs for a serial like protocol. I couldn't find esp32_spp_server.cpp. For...

maybe https://github.com/kai-morich/SimpleBluetoothLeTerminal/blob/8c0ac02012a9e05b0c0bea3ce81107cd25a87aea/app/src/main/java/de/kai_morich/simple_bluetooth_le_terminal/TerminalFragment.java#L87 is missing

Thanks for your contribution. This could be useful for all my Terminal apps but on the other side I want to keep them as simple as possible to provide them...