mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-07-15 08:20:14 +03:00
v0.1.7 add remote server, agent, client
This commit is contained in:
@@ -16,7 +16,7 @@ async def main(is_debug=False):
|
||||
)
|
||||
logging.getLogger("carbus_async.wire").setLevel(logging.DEBUG)
|
||||
|
||||
dev = await open_remote_device("127.0.0.1", 9000, serial=5957, password="1234")
|
||||
dev = await open_remote_device("84.54.37.149", 9000, serial=5957, password="1234")
|
||||
|
||||
print(f"Devise SN: {await dev.get_serial()}")
|
||||
|
||||
@@ -36,4 +36,4 @@ async def main(is_debug=False):
|
||||
await dev.close()
|
||||
|
||||
|
||||
asyncio.run(main(is_debug=True))
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user