Update 04-rime/07-sky-collect.csc
- decrease timeout value to 450,000 msec, which is enough to send 10 messages at 30 seconds interval after 2 minutes start-up wait - handle the case of receiving seqno out of range
This commit is contained in:
parent
8fca9ced8e
commit
5d19196e54
1 changed files with 3 additions and 1 deletions
|
@ -362,7 +362,7 @@ make example-collect.sky TARGET=sky</commands>
|
|||
<plugin>
|
||||
org.contikios.cooja.plugins.ScriptRunner
|
||||
<plugin_config>
|
||||
<script>TIMEOUT(600000);
|
||||
<script>TIMEOUT(450000);
|
||||
|
||||
num_nodes = mote.getSimulation().getMotesCount();
|
||||
|
||||
|
@ -408,6 +408,8 @@ while(true) {
|
|||
dups = received[source].substr(seqno, 1);
|
||||
if(dups == "_") {
|
||||
dups = 1;
|
||||
} else if (dups == "") {
|
||||
continue;
|
||||
} else if(dups < 9) {
|
||||
dups++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue