Skip to content

Commit 44b5645

Browse files
committed
Added device version test
1 parent a57276b commit 44b5645

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/test_version.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)