thing.file.upload
The thing.file.upload command initiates a file Upload from LWM2M device to the deviceWISE Cloud.
TR50 Request
{
"cmd": {
"command": "thing.file.upload",
"params": {
"thingKey": "500000000000000000000001",
"srcPath": "/dwmanager/etc/",
"global": "false"
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
thingId | String | Yes* | The Identifier of the device from where the file will be uploaded. |
thingKey | String | ||
*One of the above parameters is required to identify the thing. If omitted, the thingKey associated with your session will be used. | |||
srcPath | String | Yes | Fully qualified path including file name on the LWM2M agent which will be sent from agent to the deviceWISE Cloud. |
global | Bool | Yes | Indicates whether the file will be uploaded to the Thing's or organization's files. |
TR50 Response
If the command is sent successfully a success message and the file gets uploaded to the deviceWISE Cloud. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true
}
}