kai-morich / SimpleBluetoothLeTerminal

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

Add "STX/ETX" while Sending and Receiving Commands #23

Closed bhavin2887 closed 3 years ago

bhavin2887 commented 3 years ago

How can I add "STX/ETX" while working with commands. Yes you have provided option of CR+LF, LF and none in NewLine, but can you also specify how to add "STX/ETX"(Start of Text Character/End of Text Character).

kai-morich commented 3 years ago

if you need simple solution for send only, you could the characters here https://github.com/kai-morich/SimpleBluetoothLeTerminal/blob/4e8a994043b1c276881b7a9441326bcdd1d136b9/app/src/main/java/de/kai_morich/simple_bluetooth_le_terminal/TerminalFragment.java#L214