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
-
-
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 ;-)
-
For firmware info:
import os [os.uname().sysname, os.uname().machine, os.uname().release] ['LoPy', 'LoPy with ESP32', '0.9.7.b1']