Skip to content

Commit bc542ca

Browse files
Sylwester DawidaSylwester Dawida
Sylwester Dawida
authored and
Sylwester Dawida
committed
update
1 parent ba08e00 commit bc542ca

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed
326 KB
Loading

Rysunki/Untitled Diagram (8).png

5.47 MB
Loading

python/.idea/workspace.xml

+8-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
31 Bytes
Binary file not shown.

python/comunication.py

+2
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ async def run(self, loop):
224224
self.signals.lock.emit(1)
225225
x = await client.is_connected()
226226
self.print("Connected to mobile robot")
227+
self.print(self.secourityCode)
227228
await client.write_gatt_char(self.uartUUID, self.secourityCode)
228229
await client.start_notify(self.uartUUID, self.getData)
229230
self.timer = threading.Timer(10, self.secourityCodeTimeUp)
@@ -238,6 +239,7 @@ async def run(self, loop):
238239
except Exception as e:
239240
self.print("An exception occurred: " + str(e))
240241
finally:
242+
self.timer.cancel()
241243
self.print("Communicator closed")
242244
self.signals.lock.emit(2)
243245
self.disc = False

0 commit comments

Comments
 (0)