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
send/receive string macro and 0xFF, 0x00
Moderator: Benj
-
- 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
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 ?
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 ?
-
- 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
I believe strings are terminated by a byte of 0x0. I think you will need to read the data as char.