kai-morich / SimpleBluetoothLeTerminal

Android terminal app for Bluetooth LE devices using custom serial profiles
MIT License
288 stars 111 forks source link

Check for write properties in BLE characteristics fails #53

Closed WalterWirths closed 1 month ago

WalterWirths commented 1 month ago

The code checks if a characteristic with "PROPERTY_WRITE" exists. But the check will fail if the writeable characteristic has the property "PROPERTY_WRITE_NO_RESPONSE". This property is used in libraries like the Arduino BLE serial lib (https://github.com/Uberi/Arduino-HardwareBLESerial). https://github.com/kai-morich/SimpleBluetoothLeTerminal/blame/6ab96d5cc8283b44c384cba76709bad2a5e80c39/app/src/main/java/de/kai_morich/simple_bluetooth_le_terminal/SerialSocket.java#L485-L486