[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
TupleSpace.java, 1.15, 1.16
Chien-Liang Fok
chien-liang at users.sourceforge.net
Wed Apr 19 12:03:31 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24025/edu/wustl/mobilab/agilla
Modified Files:
TupleSpace.java
Log Message:
The results message is sent to the bcast address to ensure that the gateway will receive it.
Index: TupleSpace.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/tools/java/edu/wustl/mobilab/agilla/TupleSpace.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** TupleSpace.java 13 Feb 2006 08:40:39 -0000 1.15
--- TupleSpace.java 19 Apr 2006 19:03:29 -0000 1.16
***************
*** 235,239 ****
// edu.wustl.mobilab.agillimone.microbenchmarks.TimeKeeper.start();
try {
! sni.send(resMsg, reqMsg.getReply()); // send the results back
} catch (IOException ioe) {
ioe.printStackTrace();
--- 235,242 ----
// edu.wustl.mobilab.agillimone.microbenchmarks.TimeKeeper.start();
try {
! // Do not send to the reply address because the mote may be multiple hops away
! // Instead, send it to the bcast address
! //sni.send(resMsg, reqMsg.getReply()); // send the results back
! sni.send(resMsg, TOS_BCAST_ADDRESS);
} catch (IOException ioe) {
ioe.printStackTrace();
More information about the Tinyos-contrib-commits
mailing list