if you really have a semi-colon inside the send args list:
                                                       v
         AMSend.send(AM_BROADCAST_ADDR,&msg,sizeof Imsg;)

it's probably not gonna compile...it should be "sizeof(Imsg)".
And I don't think the parens match up either.

But the basic usage looks correct. Perhaps you can look at
one of the demo apps that uses IntToRfm or whatever T2 has
replaced it with. CntToRfm and the Boomerang version CountSend
do what you want.

MS



milos rovcanin wrote:
> 
> 
> May I have your attention,please! This is my problem: i am trying to 
> send a packet that I designed.     typedef struct{ uint16_t a;
>                                                                               
>                                                                         
>                    uint16_t b;
>                                                                               
>                                                                             
>                               } Instructions;
> now,how am I supposse to send it ? i did it like  this:   message_t  msg;
>                                                                      
> Instructions 
> Imsg;
>  
> memcpy(call AMSend.getPayload(&msg),&Iporuka,sizeof Iporuka);
> if ((call AMSend.send(AM_BROADCAST_ADDR,&msg,sizeof Imsg;)==SUCCESS) 
> call Leds.led0On();
>  
> Led never came On!!!! Do youo have any suggestions,please!?
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to