Oh Yes !But I am sure you would recognise that as being desirable,
Re: webRPEL
so far:
I have been able to run struss's do-connect() code and get network connection (IP address etc.) .
I can import webrepl_setup and generate a password file.
I can see on a terminal (CuteCOM connected to the pico's usb port /dev/ttyACM0) that the WebREPL server is running :
Code:
network config: ('192.168.0.37', '255.255.255.0', '192.168.0.1', '194.168.4.100')hostname : PicoWSWebREPL server started on http://192.168.0.37:8266/Started webrepl in normal modeMicroPython v1.22.1 on 2024-01-05; Raspberry Pi Pico W with RP2040Type "help()" for more information.
Code:
WebREPL connectedMPY: soft rebootConnection lost -- [Errno 111] Connect call failed ('192.168.0.37', 8266)Use Stop/Restart to reconnect.Process ended with exit code 1.
Code:
WebREPL connectedMPY: soft rebootConnection lost -- [Errno 111] Connect call failed ('192.168.0.37', 8266)Use Stop/Restart to reconnect.Exception ignored in: <function BaseEventLoop.__del__ at 0x7ff646b39d80>Traceback (most recent call last): File "/snap/thonny/213/lib/python3.10/asyncio/base_events.py", line 690, in __del__ self.close() File "/snap/thonny/213/lib/python3.10/asyncio/unix_events.py", line 68, in close super().close() File "/snap/thonny/213/lib/python3.10/asyncio/selector_events.py", line 87, in close self._close_self_pipe() File "/snap/thonny/213/lib/python3.10/asyncio/selector_events.py", line 94, in _close_self_pipe self._remove_reader(self._ssock.fileno()) File "/snap/thonny/213/lib/python3.10/asyncio/selector_events.py", line 272, in _remove_reader key = self._selector.get_key(fd) File "/snap/thonny/213/lib/python3.10/selectors.py", line 191, in get_key return mapping[fileobj] File "/snap/thonny/213/lib/python3.10/selectors.py", line 72, in __getitem__ fd = self._selector._fileobj_lookup(fileobj) File "/snap/thonny/213/lib/python3.10/selectors.py", line 226, in _fileobj_lookup return _fileobj_to_fd(fileobj) File "/snap/thonny/213/lib/python3.10/selectors.py", line 42, in _fileobj_to_fd raise ValueError("Invalid file descriptor: {}".format(fd))ValueError: Invalid file descriptor: -1Process ended with exit code 1.
Statistics: Posted by BillTodd — Mon Jan 22, 2024 2:56 pm