platypush/plugins/esp/__init__.py
def unique_id(self, **kwargs) -> str:
        """
        Get the unique ID of the device.
        t 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..

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
        code = '''
import machine
print(':'.join(['{:02x}'.format(b) for b in machine.unique_id()]))
'''

        return self.execute(code, **kwargs).output

        Get the unique ID of the device.
        t 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..

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        
Get the unique ID of the device.
t 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
Get the unique ID of the device . t 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
def unique_id(self, **kwargs) -> str:
        code = '''
import machine
print(':'.join(['{:02x}'.format(b) for b in machine.unique_id()]))
'''
        return self.execute(code, **kwargs).output
def unique_id ( self , ** kwargs ) -> str : code = '''
import machine
print(':'.join(['{:02x}'.format(b) for b in machine.unique_id()]))
''' return self . execute ( code , ** kwargs ) . output
Get the unique ID of the device.
Get the unique ID of the device .
"""
        Get the unique ID of the device.
        t 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..

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
        """
self
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . execute ` .