Hello,
I want to provide in a component AMSend and Receive interfaces to be used in a 
higher layer application.

command void* AMSendSync.getPayload(message_t* msg){
    sync_init= (sync_InitSec_msg_t*)(call subAMSendSync.getPayload(msg));
    return &(sync_init->sync);
    //return call subAMSendSync.getPayload(msg);
}

command error_t AMSendSync.send(am_addr_t addr, message_t* msg, uint8_t len){ 
    sync_init->Org=myOrg;
    for(k=0;k<8;k++){
      sync_init->cle[k]=cPi[k];
    }
    return call subAMSendSync.send(addr, msg, 
(uint8_t)sizeof(sync_InitSec_msg_t));
    //return call subAMSendSync.send(addr, msg, len);
}

The
higher application works if I use "return call
subAMSendSync.getPayload(msg); AND return call subAMSendSync.send(addr,
msg, len); " only . But when I use the above code, the message was not
sent and sendDone is not signaled.

How do you think about it?

Thanks in advance.
Wassim Drira


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to