On Tue, Jun 17, 2008 at 6:50 AM, Varun Jain <[EMAIL PROTECTED]> wrote: > Hi Romain, > In "tymaluate", you use Receive interface in the 4 tasks. The Receive > interface does not have the "getpayload" command, so compiling this > program gives an error. I think this is because of the big switchover in > AMSend,Packet, Send interfaces... and now Packet provides these > commands. So I have added "uses interface Packet" and changed lines in > the implementation of those 4 tasks as follows: > > buf_msg = call Receive.getPayload(&buf_packet, NULL); > > to > > buf_msg = call Packet.getPayload(&buf_packet, NULL); > > Is it correct that to get the actual payload, we NOW need to use the > Packet interface instead of Receive interface?????? > > Cheers, > > Varun Jain > >
Yes that's correct. My code was written with T2.0.1 and I realised this major switch when I checked the code in T2.0.2 several months after. But as tymaluate was not added to the tree, I didn't update it, sorry for that. To run the java app, try something like from the java directory: java -classpath $CLASSPATH:. Window topo.txt The topology file describes the locations of the node on a 100x100 grid. Rgds, Romain _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
