add data transfer
authorMart Lubbers <mart@martlubbers.net>
Sun, 20 Dec 2015 16:48:13 +0000 (17:48 +0100)
committerMart Lubbers <mart@martlubbers.net>
Sun, 20 Dec 2015 16:48:13 +0000 (17:48 +0100)
a3/code/jtorx/client/helloworld.py

index c114558..3578d3e 100644 (file)
@@ -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)