machine — functions related to the board

The machine module contains specific functions related to the board.

Miscellaneous functions

machine.info([verbose])

Print information about the machine including unique id, interned string usage, and memory usage. If the verbose argument is given then extra information is printed including a heap dump.

machine.unique_id()

Returns a byte string with a unique identifier of a board/SoC. It will vary from a board/SoC instance to another, if underlying hardware allows. Length varies by hardware (so use substring of a full value if you expect a short ID). In some MicroPython ports, ID corresponds to the network MAC address.