Hello all,
In my code i want to use two instances of amsend (like timer in application
'blink'), to send two different types of packets.
But I want them to be of same AM_type so that i receive all the messages in
same Recieve function.

So I use 'ActiveMessageC as app', and 'ActiveMessageC as mesh_app' also  (it
doesn't support prefix 'new').now i have implemented two senddone events:
app.senddone and mesh_app.senddone .But problem is when i do that, both of
these functions get invoked whatever type of packet is sent ,  from instance
'app' or 'mesh_app'.
whereas i want if packet is sent from 'app' then only app.senddone shud be
invoked and if packet is sent from 'mesh_app', mesh_app.senddone should be
invoked.

Also I tried to use 'new AMSenderC' as one component and 'ActiveMessageC' as
another, but still same problem persists.

Do you suggest a better solution?

Thanks
Deepanshu Vasal
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to