I guess the most correct way to do that is to call the second send within the sendDone event handler (of course you are going to check that only after the hello packet you'll send the data - otherwise, you'll keep sending data indefinitely :D ). Hope that helps,
Raf 2009/8/13 Omar Losi <[email protected]> > Hi all, > > I kindly ask you to help me with the following problem: > > 1) NODE A: send an hello packet > 2) NODE B: answers to node A > 3) NODE A: after receiving answer from B, must send data to node B and > these data must be read from the memory(an array that simulates flash > memory) > > n.b.: Reading and writing in the array are effected by two interfaces > implemented by me > > The problem is the following: when node A tries to send data stored in the > array, many times the radio is busy.(as node A is sending an hello packet, > right?) > Can you suggest me a solution in order to send these data? > > Many thanks for your help > > Omar > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Raffaele Gravina | Research Engineer Wireless Sensor Networks Lab Berkeley 2000 Hearst Ave, suite 304 Berkeley, CA 94709 +1 510 666 0174 ext. 101
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
