WiPy 2.0 Firmware and Processor-ID - How to get?
-
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 withmachine.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 -
For firmware info:
import os [os.uname().sysname, os.uname().machine, os.uname().release] ['LoPy', 'LoPy with ESP32', '0.9.7.b1'] -
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 ;-)
-
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