[Tinyos-help] handling multiple send/receive types? do I need multiple "new AMS enderC as X"?

2007-11-06 Thread Murray, Ben
Hi I am trying to write a program that needs to be able to cope with a number of different message types, usually of different lengths. These different message types needed to be routed to different parts of my application for processing depending on their type. Likewise, each note needs to be ab

Re: [Tinyos-help] handling multiple send/receive types? do I need multiple "new AMS enderC as X"?

2007-11-06 Thread Michael Schippling
In T1 (I assume T2 is only _slightly_ different in some curious way)... A header file defines all the message structures and "AM_" types. Your config file has a line for each message type: // Host commands to be received RoboMsgM.RCmdStartMsg -> GenericComm.ReceiveMsg[AM_ROBOCMDSTARTMSG];

RE: [Tinyos-help] handling multiple send/receive types? do I need multiple "new AMS enderC as X"?

2007-11-06 Thread Murray, Ben
Thanks for the reply! Seems (curiously) similar in T2...I think? I have a few different send/receive going on now. My question about accessing AMSenderC.Packet (which is likely a T2 thing that I've picked up from one of the example/tutorial programs) still remains though: I've used the same AMSen