diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-09 13:16:42 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-09 13:16:42 +0200 |
| commit | cfa677a0c678f742203aea601c6368768e5467da (patch) | |
| tree | be42cf52fc912a6ca78d334039d47cfb591e9e43 /manual | |
| parent | 57f020e09d738e283520e8cfc88b4cdd1aeaa551 (diff) | |
Debug synchronization + add return code
Diffstat (limited to 'manual')
| -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") |
