Actually nodeid is declared in the booted function, as nodeid = TOS_NODE_ID.
What I have to do is that when the startDone function is run, it loads the
varialvel nodeid with the value of the node and does not change.
What is happening now is that starDone executes on node 24 (for example) and
HI Abbas,
How are you setting your 'power level 1' , 'power level 2' etc.? Is this using
CFLAGS in your Makefile or are you calling setPower on the packet, or something
else? Please share your code.
James
From: tinyos-help-boun...@millennium.berkeley.edu
In your startDone function, your line:
dbg("teste", "ENVIAR_PKT_DADOS: destino %hu nodeid %hu slot %hu [cont %hu]
no tempo=%lu.\n", syncwith, nodeid, slot, cont, call Clock.get());
As far as I can tell, you haven't actually declared or assigned a variable
called 'nodeid'. Perhaps you meant to