Actually, the copy does not work either.
When I access sm-value[1] at different times, it seems to have random
values, I guess I'm accessing the data of some other component.
I quite clueless now...
Romain
On 5/18/07, Romain Thouvenin [EMAIL PROTECTED] wrote:
Hi,
I have made a TLV packet
unfortunately
nx_uint8_t value[];
is just another way to say
nx_uint8_t *value;
The packet definition must contain the actual data because
the lower levels treat the message as a single char array.
When you do the assignment, whatever is at payload[2] and [3]
is treated as a
Actually, there was a stupid mistake in my code where I access the
data. With the mistake fixed, it works!
I mean this works:
receive(message_t * msg, void * payload, uint8_t length){
sensing_msg_t * sm = payload;
do_something_with(sm-value[0]);
...
}
I have to say I don't really