[Tinyos-help] example Oscilloscope

2013-02-12 Thread Antonio
hi to all, Thank you in principle for all people help me, i'm studing for my university the tinyos and java, i have this problem, i read example Oscilloscope, now in this example i don't understand this: in data.java i read this:  . /* Data received from mote nodeId containing

Re: [Tinyos-help] example Oscilloscope

2013-02-12 Thread Dang Thi Hai Ha
Hi, My answer is written inline below: /* Data received from mote nodeId containing NREADINGS samples from messageId * NREADINGS onwards. Tell parent if this is a new node. */ void update(int nodeId, int messageId, int readings[]) { if (nodeId = nodes.length) {

Re: [Tinyos-help] example Oscilloscope

2013-02-12 Thread Eric Decker
On Tue, Feb 12, 2013 at 1:21 AM, Dang Thi Hai Ha hris2...@gmail.com wrote: Hi, My answer is written inline below: /* Data received from mote nodeId containing NREADINGS samples from messageId * NREADINGS onwards. Tell parent if this is a new node. */ void update(int

Re: [Tinyos-help] example Oscilloscope

2013-02-12 Thread Dang Thi Hai Ha
if (nodeId = newLength) { newLength = nodeId + 1; } This is to treat the case when node.length = 0. That seems like a rather convoluted (unclear) way of checking for 0. Why don't you simply check for node.length == 0? That was my initial guess. Maybe it

Re: [Tinyos-help] example Oscilloscope

2013-02-12 Thread Antonio
;     } .. best regads Antonio Da: Eric Decker cire...@gmail.com A: Dang Thi Hai Ha hris2...@gmail.com Cc: Antonio daita...@yahoo.it; tinyos forum tinyos-help@millennium.berkeley.edu Inviato: Martedì 12 Febbraio 2013 10:48 Oggetto: Re: [Tinyos-help] example

Re: [Tinyos-help] example Oscilloscope

2013-02-12 Thread Dang Thi Hai Ha
@millennium.berkeley.edu *Inviato:* Martedì 12 Febbraio 2013 10:48 *Oggetto:* Re: [Tinyos-help] example Oscilloscope On Tue, Feb 12, 2013 at 1:21 AM, Dang Thi Hai Ha hris2...@gmail.comwrote: Hi, My answer is written inline below: /* Data received from mote nodeId containing NREADINGS

[Tinyos-help] example Oscilloscope Help

2007-10-16 Thread Edmund J
Hi, Is there any method in this oscilloscope java application that can retrieve the number of Motes that are connected? i.e how many sensors are connected in the network. Thank you. Regards, Edmund - Real people. Real questions. Real answers.

[Copfilter] Copy of quarantined email - *** SPAM *** [6.5/5.0] [Tinyos-help] example Oscilloscope Help

2007-10-16 Thread [EMAIL PROTECTED]
Hi, Is there any method in this oscilloscope java application that can retrieve the number of Motes that are connected? i.e how many sensors are connected in the network. Thank you. Regards, Edmund - Real people. Real questions. Real answers.