• Adding timeout to sys.stdin.read(1)

    MicroPython uart read data telnet select
    3
    0 Votes
    3 Posts
    44 Views
    B
    @jcaron unfortunately, there is any method with the stdin and I haven't found any way to interact directly with the telnet server. My previous implementation used the UART, but then I realized that I was able to read from Telnet, but no way to type anything. Also, the telnet connection was quite slow and unreliable for some reason (time out when login/password). With stdin it works much better, but not typing anything will block the application forever.
  • socket.fileno()

    Moved Discussion select asyncio socket
    5
    0 Votes
    5 Posts
    2k Views
    D
    Hello, fileno method added here: https://forum.pycom.io/topic/1951/new-firmware-release-version-v1-9-2-b1 Cheers, Daniel