You can do it with the following trick:

switch (TOS_LOCAL_ADDRESS)  {

case 1: /* CODE FOR APP A HERE */
                    break;

          case 2:
                     /* CODE FOR APP B HERE */
                    break;

}

In such way you can run the code according to the address of each node.

Andrea

----- Original Message ----- From: "Arijit Ghosh" <[EMAIL PROTECTED]>
To: <tinyos-help@Millennium.Berkeley.EDU>
Sent: Wednesday, March 22, 2006 12:55 AM
Subject: [Tinyos-help] TOSSIM: 2 motes, 2 different apps


Hello All,

I am trying to simulate my application using TOSSIM. I
have mote 1 running app A and mote running app B. How
do I simulate this in TOSSIM? My initial understanding
is that you make an application for pc and invoke
TOSSIM with the number of nodes. Obviously that
assumes all motes have the same code running.

Thanks in advance.
Rij

"Do the best you can, with what you have, where you are." -- Roosevelt

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
DVD vergini: acquista online a prezzi vantaggiosi!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4589&d=22-3
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to