Just because of the history, because I did not start based on webrepl_cli.py but instead based on aivarannamaa's client from this forum thread:Instead, you add dependency on CPython, and a particular 3rd-party module for it, named "websocket".
viewtopic.php?f=2&t=3124&p=29865#p29865
It is, see the imports:However, this fact isn't disclosed anywhere.
https://github.com/Hermann-SW/webrepl/b ... _client.py
as well as that it runs under Python v2 as well as v3:
I did a major rewrite of webrepl_client.py over the last days, and updated documentation in README.md as well:
https://github.com/Hermann-SW/webrepl#webrepl-shell
Do you think I should add the dependencies (imports) there? Only websocket or threading as well? Others? Should I add that webrepl_client.py runs for both Python versions as well?
Btw, websocket module runs in webrepl_client.py and not on MicroPython, so no 3rd party modules needed in MicroPython for me! I will just import machine module and use its machine.PWM to drop payload from drone, with ESP-01s attached running MicroPython. The remote MicroPython session will be run on mobile Pi ZeroW on ground:
https://www.esp8266.com/viewtopic.php?f ... 320#p78320