[Tinyos-help] How to catch sendDone() in tython?

Antonio C pippo0783 at yahoo.it
Tue Nov 6 09:47:17 PST 2007


Hi all,
a short question: i'm trying to catch SendMsg.sendDone() in my tython script..
i have created an event handler (in tython) 

from net.tinyos.sim.event import *
from simcore import *

def catch(event):
    print event

interp.addEventHandler(catch,UARTMsgSentEvent)


now in my nesc code i have implemented event result_t SendMesg.sendDone()
(i call SendMsg.Send(...) when the application throws Timer.fired() )

in TOSSIM console when a message is sent appears the right output ( printf(....))
but in tython console nothing appears...what can it be?

Bye and thanks
A.



       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071106/5edd7c62/attachment.htm


More information about the Tinyos-help mailing list