We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57276b commit 44b5645Copy full SHA for 44b5645
tests/test_version.py
@@ -0,0 +1,23 @@
1
+"""
2
+Tests the Frame specific Lua libraries over Bluetooth.
3
4
+
5
+import asyncio
6
+from frameutils import Bluetooth
7
8
9
+async def main():
10
+ b = Bluetooth()
11
12
+ await b.connect(print_response_handler=lambda s: print(s))
13
14
+ await b.send_lua("print(frame.HARDWARE_VERSION)")
15
+ await b.send_lua("print(frame.FIRMWARE_VERSION)")
16
+ await b.send_lua("print(frame.GIT_TAG)")
17
18
+ await asyncio.sleep(1)
19
20
+ await b.disconnect()
21
22
23
+asyncio.run(main())
0 commit comments