repositories
/
tt2015.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
130b865
)
add data transfer
author
Mart Lubbers
<mart@martlubbers.net>
Sun, 20 Dec 2015 16:48:13 +0000
(17:48 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Sun, 20 Dec 2015 16:48:13 +0000
(17:48 +0100)
a3/code/jtorx/client/helloworld.py
patch
|
blob
|
history
diff --git
a/a3/code/jtorx/client/helloworld.py
b/a3/code/jtorx/client/helloworld.py
index
c114558
..
3578d3e
100644
(file)
--- a/
a3/code/jtorx/client/helloworld.py
+++ b/
a3/code/jtorx/client/helloworld.py
@@
-47,6
+47,10
@@
if __name__ == "__main__":
print 'RP: {}'.format(seqnr)
response = sender.sendInput("RP", seqnr, 0)
sender.sendReset()
+ if data == 'DAT?':
+ seqnr += 1
+ print 'DAT: {} sending: a'.format(seqnr)
+ response = sender.sendInput('PA', seqnr, sender.lastSeqReceived + 1, 'a')
if response:
if response == 'Timeout':
print 'data: {} - TIMEOUT!'.format(data)