diff options
Diffstat (limited to 'manual/manual.org')
| -rw-r--r-- | manual/manual.org | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manual/manual.org b/manual/manual.org index 4ad104c..7f51a6a 100644 --- a/manual/manual.org +++ b/manual/manual.org @@ -136,6 +136,7 @@ called by the orchestrator to execute the code of your node. The api parameter p #!/usr/bin/env python import sys, random, time + from esds import RCode lr=random.Random(6) @@ -152,7 +153,7 @@ called by the orchestrator to execute the code of your node. The api parameter p # Receive until uptime seconds if elapsed while api.read("clock") < wakeuntil: code, data=api.receivet("wlan0",wakeuntil-api.read("clock")) - if code == 0: + if code == RCode.SUCCESS: api.log("Receive "+data) api.log("Was up for {}s".format(api.read("clock")-wakeat)) endoff=3600*(i+1)-api.read("clock") |
