send/receive string macro and 0xFF, 0x00

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

send/receive string macro and 0xFF, 0x00

Post by Mathy »

Hello !

I am using the send/receive string macro to import and export unknown strings from a computer but if I receive the byte 0xFF, the send string macro ignore it even if the byte is the second or the last one.
Do you know why and if there are other byte like 0xFF that are ignored ?

I would like to supress this byte manipulation, what i have to chance in the c code ?

Thank you for your help :)

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times
Contact:

Re: send/receive string macro and 0xFF, 0x00

Post by Mathy »

My bad, I found in the component properties. I have to fill the extended data instead of legacy data.
So the problem is solved for the 0xFF byte but I found that I can't receive and send strinf with a 0x00 byte.
The send string macro stop as soon as there is 0x00 into the string.

How can I work around ?

dbasnett
Posts: 125
Joined: Mon Aug 15, 2011 1:54 pm
Has thanked: 8 times
Been thanked: 11 times
Contact:

Re: send/receive string macro and 0xFF, 0x00

Post by dbasnett »

I believe strings are terminated by a byte of 0x0. I think you will need to read the data as char.

Post Reply