Skip to content

Exception raised after connection #15

@linkspec

Description

@linkspec

It appears that I'm successfully connecting to the device, however immediately that I get a status output and the 'menu' appears, I then get the below exception.

Behavior appears to be the same regardless of whether I manually specify the MAC or not. Python is version 3.12.0

`(.venv) PS D:\Documents\Python\treadmil> ph4-walkingpad-ctl --stats 750 --json-file walking2.json -a 57:4C:4E:2B:25:FC
WalkingPadCurStatus(dist=0.0, time=0, steps=0, speed=0.0, state=0, mode=1, app_speed=0.23333333333333334, button=1, rest=0000)

WalkingPad controller

2024-03-24 17:08:18 JamesPC ph4_walkingpad.main[18276] ERROR Exception in the main entry point:
Traceback (most recent call last):
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4_walkingpad\main.py", line 375, in main
await self.work()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4_walkingpad\main.py", line 104, in work
res = await self.entry()
^^^^^^^^^^^^^^^^^^
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4_walkingpad\main.py", line 188, in entry
await self.acmdloop()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4acmd2_init_.py", line 153, in acmdloop
await self.acmdloop()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4acmd2_init
.py", line 181, in _acmdloop
self.start_controller()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4acmd2_init
.py", line 51, in _start_controller
self.start_reader()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4acmd2_init
.py", line 80, in start_reader
self.reset_reader()
File "D:\Documents\Python\treadmil.venv\Lib\site-packages\ph4acmd2_init
.py", line 86, in reset_reader
self.loop.add_reader(self.stdin.fileno(), self.reader)
File "C:\Program Files\Python312\Lib\asyncio\events.py", line 534, in add_reader
raise NotImplementedError
NotImplementedError`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions