Hi all! I am a new to TinyOS. I am doing a simulation with one mote program with TOSBase. I use BcastIject to send radio packet. In BcastInject, I modify it with destination address is received from command. After that, I put this address in the read_log_arg variable of SimpleCmd. Here are some st
Sorry, I think in the command if (cmd->args.rl_args=TOS_LOCAL_ADDRESS) it must be if (cmd->args.rl_args==TOS_LOCAL_ADDRESS). However, when I change this, the Cygwin display "invalid operands to binary ==". How can I solve this problem? Thanks alot. Hi all! I am a new to TinyOS. I am doing
good, you caught that =/== thing...
From looking at the SimpleCmdMsg.h file, I think what you want is:
cmd->args.rl_args.destaddr
since rl_args is a struct itself.
Also on the question you sent to me directly:
From the Cygwin command, if I type java.net.tools.BcastInject led_on 1
> (