Skip to main content

io.edgehog.devicemanager.storage.File v0.1

Property for the files stored on a device.

Published when a file has been fully transferred and stored on the device.

About​

This interface is of type properties and is owned by the device, meaning that it is the device which initiates the data flow. Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.

Mappings​

The interface has the following mappings:

  • /%{fileId}/pathOnDevice with string type. Path on the device for the transferred file
  • /%{fileId}/sizeBytes with longinteger type. Size in bytes of the file

/%{fileId}/pathOnDevice​

Path on the device for the transferred file

This endpoint accepts values of type string: an UTF-8 string, at most 65536 bytes long.

The endpoint is parametric and fileId can be replaced with any valid string to send data on specialized paths.

The value of the property can be unset.

/%{fileId}/sizeBytes​

Size in bytes of the file

This endpoint accepts values of type longinteger: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).

The endpoint is parametric and fileId can be replaced with any valid string to send data on specialized paths.

The value of the property can be unset.