mrossen Active Member Licensed User Longtime User Apr 1, 2014 #1 Hi, If I use AStreams with prefix the length of what I send and receive will be addto to my string. My question is: If I send ex. char * how will it look when I reviece it. Will it be ascii char 01 and char *? And the same if I want to send to at device that expect prefix. Do I have to send ascii char 01 and char * Mogens
Hi, If I use AStreams with prefix the length of what I send and receive will be addto to my string. My question is: If I send ex. char * how will it look when I reviece it. Will it be ascii char 01 and char *? And the same if I want to send to at device that expect prefix. Do I have to send ascii char 01 and char * Mogens
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2014 #2 If both sides implement the prefix protocol correctly then you will get the exact same message that was sent. The prefix is removed before NewData event. Upvote 0
If both sides implement the prefix protocol correctly then you will get the exact same message that was sent. The prefix is removed before NewData event.
mrossen Active Member Licensed User Longtime User Apr 2, 2014 #3 Yes I know. But I have a app written in B4A with prefix, I need to write in Ios. And I have a device there also using prefix Therefor I need to know how the message looks if only one part using prefix. Upvote 0
Yes I know. But I have a app written in B4A with prefix, I need to write in Ios. And I have a device there also using prefix Therefor I need to know how the message looks if only one part using prefix.
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2014 #4 Each message is prefixed with the length encoded as an int (4 bytes). Upvote 0