|
To check if an edge client is connected, navigate to the Remote Thing in ThingWorx Composer and check the isConnected and isReporting properties. If the value of either property is true, the edge client is connected and available for a file transfer.
|
|
Even with queueable set to true, it is possible for a file transfer to fail if the device disconnects during the transfer.
|
Parameter
|
File Download
|
File Upload
|
---|---|---|
sourceRepo
|
The ThingName of the File Repository from which the file is downloaded.
|
The ThingName of the edge device from which to upload the file.
|
sourceFile
|
The name of the file to be downloaded to the edge device. For example, test.txt.
|
The name of the file to be uploaded to the ThingWorx Platform from the edge device.
|
sourcePath
|
The path to the file to be downloaded from the File Repository that you specified for the source repository. If this parameter is left blank, the file is assumed to be at the root of the File Repository.
|
The path to the file on the edge device that you want to upload. If this parameter is left blank, the file is assumed to be at the root of the configured file repository of the edge device.
|
targetRepo
|
The ThingName of the edge device to which you want to download the file.
|
The ThingName of the File Repository to which the file will be uploaded.
|
targetFile
|
The name of the file as it should exist on the edge device. If you want to use a different name, you might type successfulTest.txt.
|
If the file being uploaded is compressed, which is the default behavior, this parameter is ignored.
If a single file is being uploaded uncompressed, this parameter specifies the name of the file as it should exist on the File Repository Thing.
|
targetPath
|
The path on the edge device to which the file will be downloaded. For example, /<edge_app_name>/downloads .
If this parameter is left blank, he file is assumed to be at the root of the configured file repository of the edge device.
|
The path to the file in the File Repository where the file is uploaded.
If this parameter is left blank, the file is uploaded to the root of the File Repository.
|