DMS data types. More...

Data Structures

struct  zos_dms_file_t
 DMS Cloud File System File. More...
 
struct  zos_dms_list_parameters_t
 DMS File listing parameters. More...
 

Typedefs

typedef void * zos_dms_handle_t
 DMS file handle.
 
typedef void( zos_dms_telemetry_callback_t) (msgpack_context_t *msgpack_context)
 

Enumerations

enum  zos_update_result_t {
  ZOS_UPDATE_RESULT_NONE = 0,
  ZOS_UPDATE_RESULT_SUCCESS = 1,
  ZOS_UPDATE_RESULT_NO_CHANGE = 2,
  ZOS_UPDATE_RESULT_FAILURE = 3,
  ZOS_UPDATE_RESULT_NO_CREDENTIALS = 4,
  ZOS_UPDATE_RESULT_NETWORK_ERROR = 5,
  ZOS_UPDATE_RESULT_SERVER_ERROR = 6,
  ZOS_UPDATE_RESULT_UNAUTHORIZED = 7,
  ZOS_UPDATE_RESULT_BAD_REQUEST = 8,
  ZOS_UPDATE_RESULT_NOT_FOUND = 9
}
 DMS update result codes. More...
 
enum  zos_dms_target_t {
  ZOS_DMS_DEVICE = 1,
  ZOS_DMS_PRODUCT = 2,
  ZOS_DMS_INVALID = 0xff
}
 Target of DMS operation. More...
 

Detailed Description

DMS data types.

Typedef Documentation

typedef void( zos_dms_telemetry_callback_t) (msgpack_context_t *msgpack_context)
Parameters
msgpack_context

Enumeration Type Documentation

Target of DMS operation.

Enumerator
ZOS_DMS_DEVICE 

The operation is directed to this device in the DMS.

ZOS_DMS_PRODUCT 

The operation is directed to this device's product in the DMS.

ZOS_DMS_INVALID 

ZOS_DMS_INVALID.

DMS update result codes.

This is the result of a previous update (aka OTA) attempt. These codes are returned by zn_dms_get_update_result()

Note
The code is reset after a power-cycle or another update attempt

Refer to the variable documentation for more information: dms.ota_result

Enumerator
ZOS_UPDATE_RESULT_NONE 

No update performed or device was power-cycled.

ZOS_UPDATE_RESULT_SUCCESS 

Update was successful.

ZOS_UPDATE_RESULT_NO_CHANGE 

No update required.

ZOS_UPDATE_RESULT_FAILURE 

Error during update.

ZOS_UPDATE_RESULT_NO_CREDENTIALS 

Device has no Wi-fi credentials.

ZOS_UPDATE_RESULT_NETWORK_ERROR 

Failed to connect to network.

ZOS_UPDATE_RESULT_SERVER_ERROR 

Failed to connect to DMS.

ZOS_UPDATE_RESULT_UNAUTHORIZED 

DMS returned 'unauthorized' code (403)

ZOS_UPDATE_RESULT_BAD_REQUEST 

DMS returned 'bad request' code (400)

ZOS_UPDATE_RESULT_NOT_FOUND 

DMS returned 'not found' code (404)