IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
iotmi_device_types.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  iotmiDev_AttributeMetaData
 metadata to identify an attribute More...
 
struct  iotmiDev_CommandMetaData
 metadata to identify a command More...
 
struct  iotmiDev_EventMetaData
 metadata to identify an event More...
 

Typedefs

typedef enum iotmiDev_DMStatus iotmiDev_DMStatus
 Return code for data model related API.
 
typedef struct iotmiDev_AttributeMetaData iotmiDev_AttributeMetaData
 metadata to identify an attribute
 
typedef struct iotmiDev_CommandMetaData iotmiDev_CommandMetaData
 metadata to identify a command
 
typedef struct iotmiDev_EventMetaData iotmiDev_EventMetaData
 metadata to identify an event
 
typedef void(* iotmiDev_GetCallback) (void)
 
typedef void(* iotmiDev_SetCallback) (void)
 
typedef void(* iotmiDev_CommandCallback) (void)
 
typedef iotmiDev_DMStatus(* iotmiDev_AttrReader) (iotmiDev_GetCallback getCallback, struct cJSON **jsonValue, void *user)
 
typedef iotmiDev_DMStatus(* iotmiDev_AttrWriter) (iotmiDev_SetCallback setCallback, const struct cJSON *newJsonValue, void *user)
 
typedef iotmiDev_DMStatus(* iotmiDev_CommandInvoker) (iotmiDev_CommandCallback commandCallback, const struct cJSON *jsonReq, struct cJSON **jsonResp, void *user)
 
typedef iotmiDev_DMStatus(* iotmiDev_ValueSerializer) (const void *value, size_t valueSize, struct cJSON **jsonValue)
 

Enumerations

enum  iotmiDev_DMStatus {
  iotmiDev_DMStatusOk = 0 , iotmiDev_DMStatusFail , iotmiDev_DMStatusNotImplement , iotmiDev_DMStatusExist ,
  iotmiDev_DMStatusUnsupported , iotmiDev_DMStatusInvalidArg , iotmiDev_DMStatusInvalidInState , iotmiDev_DMStatusOutOfResource ,
  iotmiDev_DMStatusTimedout
}
 Return code for data model related API. More...
 

Detailed Description

This file defines common types used in the SDK.

Typedef Documentation

◆ iotmiDev_CommandCallback

typedef void(* iotmiDev_CommandCallback) (void)

generic command callback type

◆ iotmiDev_GetCallback

typedef void(* iotmiDev_GetCallback) (void)

generic get callback type

◆ iotmiDev_SetCallback

typedef void(* iotmiDev_SetCallback) (void)

generic set callback type

Enumeration Type Documentation

◆ iotmiDev_DMStatus

Return code for data model related API.

Enumerator
iotmiDev_DMStatusOk 

The operation succeeded.

iotmiDev_DMStatusFail 

The operation failed without additional information.

iotmiDev_DMStatusNotImplement 

The operation has not been implemented yet.

iotmiDev_DMStatusExist 

The operation is to create a resource, but the resource already exists.

iotmiDev_DMStatusUnsupported 

The operation is unsupported for the given argument.

iotmiDev_DMStatusInvalidArg 

The calling arguments are invalid.

iotmiDev_DMStatusInvalidInState 

The received request cannot be handled due to the current operational state of the device.

iotmiDev_DMStatusOutOfResource 

We run out of resource such as memory.

iotmiDev_DMStatusTimedout 

The operation timed out.