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

    pymakr repl dump output

    Scheduled Pinned Locked Moved Software Tools
    pymakr
    5 Posts 2 Posters 1.4k Views 2 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.
    • O Offline
      ozeta
      last edited by

      hi, is it possibile to get a file dump of the repl consolle?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @ozeta
        last edited by

        @ozeta If you ask for just displaying the content of a file on the console:

        There is a set of small unix like tools in https://github.com/micropython/micropython-lib/tree/master/upysh, the script upysh.py
        Once you have started in on the console with
        from upysh import *
        you have commands like ls, cat("filename"), head("filename"), etc..
        just try the command man for a list of commands. .
        I import these in my main.py, such that they are always there. If you build you image yourself, you can put it in frozen bytecode.

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          ozeta @robert-hh
          last edited by

          @robert-hh nope, i'm trying to "redirect" the output of the repl consolle to a file. because for debugging purposes it's difficult to copy-paste directly from the pymakr consolle

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @ozeta
            last edited by

            @ozeta Then try to use a simple terminal emulator like picocom (linux) or putty(Windows). they allow logging the output.

            O 1 Reply Last reply Reply Quote 2
            • O Offline
              ozeta @robert-hh
              last edited by

              @robert-hh that should do the work. thanks!

              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