Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5448

General • Re: Python Console via Wifi or Bluetooth

$
0
0
Hi, since there seems to be no ssh into Pico W, I wonder if there is another option to have a remote Python console.
There's Telnet. This worked for me, and there may be others -

https://github.com/cpopp/MicroTelnetServer/blob/master/utelnet/utelnetserver.py

Code:

pi@Pi3B:~/pico/micropython/ports/picopython/pico_w $ mptool run telnet.pyExecuting 'telnet.py' on the deviceWaitWaitConnectedTelnet server started on 192.168.0.212:23

Code:

pi@Pi3B:~/pico/micropython/ports/picopython/pico_w $ telnet 192.168.0.212Trying 192.168.0.212...Connected to 192.168.0.212.Escape character is '^]'.>>> import os>>> os.uname()('picopython', 'rp2', '1.23.0-preview', '1.22.0-42 (0005) 2024-01-16 02:16:30 (GNU 7.3.1 MinSizeRel)', 'Raspberry Pi Pico & Pico W')>>>
It's quite slow, seems to have high latency. I never checked why, whether it's an issue with MicroPython or the Telnet server. I just tested it to prove it worked.

Statistics: Posted by hippy — Wed Jan 17, 2024 12:51 pm



Viewing all articles
Browse latest Browse all 5448

Trending Articles