I am writing a code, where I want to add 1 byte of STX at the start of the string & 1 byte of ETX at the end of the swift string.
Not sure how to do it.
Example:
<1B>---<3B>--<1B>-<1B>---<3B>--<1B>
<STX><String><ETX><STX><String><ETX>
Where 1B = 1 Byte & 3B = 3 Byte
STX= Start of Text
ETX= End of Text
Control Characters Reference: enter link description here