The command send all at once. No commas are inserted if you do not explicitly define so.
The command will send the text string and immediately after that will send the MyValue not as one binary byte but as 1 up to 3 ASCII codes of the value.
Example 1. If MyValue is 5, the command as you stated will send
This is my value:5crlf
The above expressed in ASCII codes will be
Example 2. If MyValue is 123 then you send outCode:$54 $68 $69 $73 $20 $69 $73 $20 $6d $79 $20 $76 $61 $6c $75 $65 $3a $35 $0d $0a T h i s i s m y v a l u e : 5 CR LF
This is my value:123crlf
or expressed in ASCII codes
I think you have not used correctly ascii and binary values. Hope the above clears things for you.Code:$54 $68 $69 $73 $20 $69 $73 $20 $6d $79 $20 $76 $61 $6c $75 $65 $3a $31 $32 $33 $0d $0a T h i s i s m y v a l u e : 1 2 3 CR LF
Ioannis




Bookmarks