Get all the USB or SD/MMC disks plugged in current device.
Return a JSON style result. The JSON format is:
{ /*OBJECT*/ | |||||
"Result": NUMBER | 200 means OK, other error code meanings are similar to HTTP Response. | ||||
"Status": "STRING" | Status message. Responsing result status of API executive, if there errors, it will describe reasons. | ||||
"Data": [ /*ARRAY*/ | Returns all valid disks. Each array item is an object contains: | ||||
{ /*OBJECT*/ | |||||
"Device": "STRING" | Disk device identifier | ||||
"Type": "STRING" | Disk type
| ||||
"Filesys": "STRING" | File system
| ||||
"VolumnName": "STRING" | The disk volumn name | ||||
"Total": INTEGER | Disk total space (in MB) | ||||
"Used": INTEGER | Used space (in MB) | ||||
"Free": INTEGER | Free space (in MB) | ||||
"UsedPercent": NUMBER | Used percent | ||||
} | |||||
] | |||||
} |
KILOVIEW Device HTTP API, v1.0
Copyright (c) 2016, KILOVIEW Electronics.