Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    REPL via WLAN.STA server

    Scheduled Pinned Locked Moved LoPy
    wlanduptermtelnet
    3 Posts 2 Posters 798 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      ljohnway
      last edited by

      On LoPy + PySense, trying to get REPL working over WLAN.STA, to free up UART0 for other use.

      Is there any option for e.g. os.dupterm(server) to just run REPL over WLAN?
      Work OK with os.dupterm(uart) if I only enter commands via WLAN
      Weird stuff happens on WLAN if I key commands via UART0.

      Thanks,
      John

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @ljohnway
        last edited by

        @ljohnway
        i do not remember if this is working but you can disable repl
        os.dupterm(None)

        and then simply connect to lopy throught telnet
        this should work - but i do not tested this..
        this is only concept you must test this self

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • L Offline
          ljohnway
          last edited by

          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?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom