filePath |
string
|
|
|
The destination path on the device where the file will be stored, relative to the TFTP server configuration on the device. |
content |
string
|
|
|
The data to be written to the file on the device. |
port |
number
|
<optional>
|
69
|
The port number of the TFTP server. |
blockSize |
number
|
<optional>
|
1468
|
The size of each DATA block in bytes. Must be between 8 and 65464. |
windowSize |
number
|
<optional>
|
4
|
The number of blocks that can be sent or received without waiting for an acknowledgment. Valid values range from 1 to 65535. |
retries |
number
|
<optional>
|
3
|
The maximum number of retry attempts before an error is triggered. |
timeout |
number
|
<optional>
|
3000
|
The time in milliseconds to wait before retrying a failed request. |
md5 |
string
|
<optional>
|
|
An optional MD5 checksum to verify the file's integrity. |
sha1 |
string
|
<optional>
|
|
An optional SHA1 checksum to verify the file's integrity. |
userExtensions |
object
|
<optional>
|
|
Custom extensions that the server may or may not support.
These extensions depend on server capabilities.
Note: The TFTP algorithm itself cannot be modified.
For example, a simple authentication mechanism can be implemented by sending `user` and `password` as extensions, allowing the server to validate credentials and accept or reject the request.
However, all extensions are transmitted in plain text.
Reserved extensions (`timeout`, `tsize`, `blksize`, `windowsize`, and `rollover`) cannot be used. |