Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. dupterm
    Log in to post

    • L

      REPL via WLAN.STA server
      LoPy • wlan telnet dupterm • • ljohnway  

      3
      0
      Votes
      3
      Posts
      798
      Views

      L

      Thanks. If I set os.dupterm(None), I get a telnet login on WLAN which works OK ('Login succeeded!), but no REPL '>>>' on WLAN (or UART0) as might be expected. micropython.org indicates dupterm requires a stream_object. I have tried the obvious wlan and server instances without success. What is the relevant object here?
    • F

      working example of dupterm with log file on /sd needed (or logging module that supports filenames)
      MicroPython • logging dupterm filename • • fsergeys  

      2
      0
      Votes
      2
      Posts
      901
      Views

      seb

      @fsergeys Is there a particular reason you need to capture stdout/stderr vs. just writing your log straight to the file?
    • 1 / 1