Need some assistance in formatting a string that I am getting from another device over OTG serial connection.
String: eGUtilities:eEeG Park ScopeeE
Hex Code:
1B4701015574696C69746965733A1B450102205061726B2053636F7065
ASCII
ESC G SOH SOH Utilities: ESC E SOH STX Park Scope ESC E
I would like to display it as:
Utilities:
Park Scope
Remote Device will always sends a two line answer to a command.
First line will always start with: ESC G SOH SOH
First line ends with: ESC E
Second Line start with: SOH STX
Second line ends with: ESC E