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

    WiPy 2.0 Firmware and Processor-ID - How to get?

    Scheduled Pinned Locked Moved MicroPython
    wipyfirmwareprocessorid
    4 Posts 4 Posters 1.6k Views 4 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.
    • M Offline
      MaSePreetz Pybytes Beta
      last edited by

      Hi folks,

      i am currently trying to figure out, how to identify my WiPys during run time.
      The information i am looking for are:

      • Firmware revision
      • Processor-ID
      • MAC address

      I want to retrieve this information during run time and transfer them via MQTT.
      For the MAC address i already found the solution with

      machine.unique_id() and network.WLAN().mac() in the forum.
      (BTW: it might be useful to add this information to the docs, the text for the unique_id() is rather general...)

      Can anybody help me with the rest?

      Many thanks in advance,
      Marc

      rcolisteteR 1 Reply Last reply Reply Quote 0
      • R Offline
        rskoniec
        last edited by rskoniec

        For firmware info:

        import os
        [os.uname().sysname, os.uname().machine, os.uname().release]
        ['LoPy', 'LoPy with ESP32', '0.9.7.b1']
        

        The machine is working as good as it's code.

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

          Firmware revision
          os.uname()

          look also here:
          https://docs.pycom.io/pycom_esp32/library/sys.html
          https://docs.pycom.io/pycom_esp32/library/uos.html

          @rskoniec - you was faster ;-)

          think about people first, then computers

          1 Reply Last reply Reply Quote 0
          • rcolisteteR Offline
            rcolistete @MaSePreetz
            last edited by

            @MaSePreetz See the topic "Readable WiFi MAC address".

            My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

            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