aboutsummaryrefslogtreecommitdiffstats
path: root/gps.py
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2020-03-09 17:57:09 +0200
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2020-03-09 17:57:09 +0200
commitba673345466a365adb107a32dc4143390d4032eb (patch)
tree783e6e32b4e1e946199445664d9ac50f04d57320 /gps.py
parent5ef7f0b592e609775352ad41c3fd656b10f86d24 (diff)
Began work for bluetooth binding
Diffstat (limited to 'gps.py')
-rw-r--r--gps.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gps.py b/gps.py
index 48ace14..ff6aeae 100644
--- a/gps.py
+++ b/gps.py
@@ -50,12 +50,9 @@ class GPSService:
async def main():
gpss = await GPSService()
try:
- await gpss.subscribe()
- data = await gpss.receive()
- data = await gpss.receive()
- data = await gpss.receive()
data = await gpss.receive()
print(data)
+ await gpss.subscribe()
except ConnectionClosedError as e:
print(e)