platypush/plugins/esp/__init__.py
def uart_readline(self, **kwargs) -> str:
        """
        Read a line (any character until newline is found) from a UART interface.

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.uart_open` and
            :meth:`platypush.plugins.esp.EspPlugin.execute`.
        :return: String representation of the read bytes, or base64-encoded representation if the
            data can't be decoded to a string.
        """
        self.uart_open(**kwargs)
        response = self.execute('uart.readline()', **kwargs).output

        try:
            return response.decode()
        except UnicodeDecodeError:
            return base64.encodebytes(response).decode()

        Read a line (any character until newline is found) from a UART interface.

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.uart_open` and
            :meth:`platypush.plugins.esp.EspPlugin.execute`.
        :return: String representation of the read bytes, or base64-encoded representation if the
            data can't be decoded to a string.
        
Read a line (any character until newline is found) from a UART interface.
Read a line ( any character until newline is found ) from a UART interface .
def uart_readline(self, **kwargs) -> str:
        self.uart_open(**kwargs)
        response = self.execute('uart.readline()', **kwargs).output
        try:
            return response.decode()
        except UnicodeDecodeError:
            return base64.encodebytes(response).decode()
def uart_readline ( self , ** kwargs ) -> str : self . uart_open ( ** kwargs ) response = self . execute ( 'uart.readline()' , ** kwargs ) . output try : return response . decode ( ) except UnicodeDecodeError : return base64 . encodebytes ( response ) . decode ( )
Read a line (any character until newline is found) from a UART interface.
Read a line ( any character until newline is found ) from a UART interface .
"""
        Read a line (any character until newline is found) from a UART interface.

        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.uart_open` and
            :meth:`platypush.plugins.esp.EspPlugin.execute`.
        :return: String representation of the read bytes, or base64-encoded representation if the
            data can't be decoded to a string.
        """
String representation of the read bytes, or base64-encoded representation if the
data can't be decoded to a string.
String representation of the read bytes or base64 - encoded representation if the data can ' t be decoded to a string .
self
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.uart_open` and
:meth:`platypush.plugins.esp.EspPlugin.execute`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . uart_open ` and : meth : ` platypush . plugins . esp . EspPlugin . execute ` .