2023-06-27 17:34:39 +08:00
|
|
|
import asyncio
|
|
|
|
from pytec.aioclient import Client
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
tec = Client()
|
2023-08-16 17:35:13 +08:00
|
|
|
await tec.start_session() #(host="192.168.1.26", port=23)
|
2023-06-27 17:34:39 +08:00
|
|
|
await tec.set_param("s-h", 1, "t0", 20)
|
|
|
|
print(await tec.get_output())
|
|
|
|
print(await tec.get_pid())
|
|
|
|
print(await tec.get_output())
|
|
|
|
print(await tec.get_postfilter())
|
|
|
|
print(await tec.get_b_parameter())
|
|
|
|
async for data in tec.report_mode():
|
|
|
|
print(data)
|
|
|
|
|
|
|
|
asyncio.run(main())
|