zjeffer
lvl.2
Belgium
Offline
|
After trying this hack, it does generate an IP address, I can run my connection test script once, but after that I get a timeout instead of connection refused:
Traceback (most recent call last):
File "src/connection_test2.py", line 6, in <module>
cmd = rm.Commander(ip="192.168.42.2", timeout=TIMEOUT)
File "/usr/local/lib/python3.8/dist-packages/robomasterpy/client.py", line 187, in __init__
resp = self._do('command')
File "/usr/local/lib/python3.8/dist-packages/robomasterpy/client.py", line 217, in _do
buf = self._conn.recv(DEFAULT_BUF_SIZE)
socket.timeout: timed out
Rebooting the Robomaster makes the script work once, but the next times I run it, it times out again.
|
|