Hello,
msg=(message_t *)btrpkt; is not correct, you are assigning the payload
to the msg, you can't do that. msg is a pointer to the AMPacket, btrpkt
is a pointer to the payload within the AMPacket. So your packet is
alredy set up without the mentioned line of code. You can just send msg
and yo
Hi to all,
i've a problem with telosb / tinyos-2.x, it is the sequent:
event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
len){
BlinkToRadioMsg* btrpkt;
if (len == sizeof(BlinkToRadioMsg)) {
btrpkt = (BlinkToRadioMsg*)payload;