platypush/plugins/esp/__init__.py
def file_upload(self, source: str, destination: Optional[str] = None, timeout: Optional[float] = 60.0, **kwargs):
        """
        Upload a file to the board.

        :param source: Path of the local file to copy.
        :param destination: Target file name (default: a filename will be created under the board's
            root folder with the same name as the source file).
        :param timeout: File transfer timeout (default: one minute).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.connect`.
        """
        device = self._get_device(**kwargs)
        host = device['host']
        port = device['port']
        self.connect(host=host, port=port, password=device['password'])
        conn = self._get_connection(host=host, port=port)
        conn.file_upload(source=source, destination=destination, timeout=timeout)

        Upload a file to the board.

        :param source: Path of the local file to copy.
        :param destination: Target file name (default: a filename will be created under the board's
            root folder with the same name as the source file).
        :param timeout: File transfer timeout (default: one minute).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.connect`.
        
Upload a file to the board.
Upload a file to the board .
def file_upload(self, source: str, destination: Optional[str] = None, timeout: Optional[float] = 60.0, **kwargs):
        device = self._get_device(**kwargs)
        host = device['host']
        port = device['port']
        self.connect(host=host, port=port, password=device['password'])
        conn = self._get_connection(host=host, port=port)
        conn.file_upload(source=source, destination=destination, timeout=timeout)
def file_upload ( self , source : str , destination : Optional [ str ] = None , timeout : Optional [ float ] = 60.0 , ** kwargs ) : device = self . _get_device ( ** kwargs ) host = device [ 'host' ] port = device [ 'port' ] self . connect ( host = host , port = port , password = device [ 'password' ] ) conn = self . _get_connection ( host = host , port = port ) conn . file_upload ( source = source , destination = destination , timeout = timeout )
Upload a file to the board.
Upload a file to the board .
"""
        Upload a file to the board.

        :param source: Path of the local file to copy.
        :param destination: Target file name (default: a filename will be created under the board's
            root folder with the same name as the source file).
        :param timeout: File transfer timeout (default: one minute).
        :param kwargs: Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.connect`.
        """
self
source
str
Path of the local file to copy.
Path of the local file to copy .
destination
Optional[str]
Target file name (default: a filename will be created under the board's
root folder with the same name as the source file).
Target file name ( default : a filename will be created under the board ' s root folder with the same name as the source file ) .
timeout
Optional[float]
File transfer timeout (default: one minute).
File transfer timeout ( default : one minute ) .
kwargs
Parameters to pass to :meth:`platypush.plugins.esp.EspPlugin.connect`.
Parameters to pass to : meth : ` platypush . plugins . esp . EspPlugin . connect ` .