|
IoTivity-Lite
|
Data Structures | |
| struct | oc_device_info_t |
| device information More... | |
| struct | oc_platform_info_t |
| platform information More... | |
Typedefs | |
| typedef void(* | oc_core_add_device_cb_t) (void *data) |
| callback for adding a device More... | |
| typedef void(* | oc_core_init_platform_cb_t) (void *data) |
| callback for initializing the platform More... | |
| typedef struct oc_device_info_t | oc_device_info_t |
| device information More... | |
| typedef struct oc_platform_info_t | oc_platform_info_t |
| platform information More... | |
Functions | |
| oc_uuid_t * | oc_core_get_device_id (size_t device) |
| retrieve the id (uuid) of the device More... | |
| bool | oc_core_get_device_index (oc_uuid_t di, size_t *device) |
| retrieve the index of device with given id More... | |
| oc_device_info_t * | oc_core_get_device_info (size_t device) |
| retrieve the device info from the device index More... | |
| int | oc_core_get_latency (void) |
| retrieves the latency (lat) property in eps of the oic.wk.res resource. More... | |
| size_t | oc_core_get_num_devices (void) |
| retrieve the amount of devices More... | |
| oc_platform_info_t * | oc_core_get_platform_info (void) |
| retrieve the platform information More... | |
| oc_resource_t * | oc_core_get_resource_by_index (int type, size_t device) |
| retrieve the resource by type (e.g. More... | |
| oc_resource_t * | oc_core_get_resource_by_uri (const char *uri, size_t device) |
| retrieve a core resource by uri More... | |
| oc_resource_t * | oc_core_get_resource_by_uri_v1 (const char *uri, size_t uri_len, size_t device) |
| retrieve a core resource by uri More... | |
| bool | oc_core_is_DCR (const oc_resource_t *resource, size_t device) |
| determine if a resource is a Device Configuration Resource More... | |
| bool | oc_core_is_SVR (const oc_resource_t *resource, size_t device) |
| determine if a resource is Security Vertical Resource More... | |
| bool | oc_core_is_vertical_resource (const oc_resource_t *resource, size_t device) |
| determine if a resource is a vertical resource More... | |
| void | oc_core_set_latency (int latency) |
| set the latency (lat) property in eps of oic.wk.res resource. More... | |
| typedef void(* oc_core_add_device_cb_t) (void *data) |
callback for adding a device
| typedef void(* oc_core_init_platform_cb_t) (void *data) |
callback for initializing the platform
| typedef struct oc_device_info_t oc_device_info_t |
device information
| typedef struct oc_platform_info_t oc_platform_info_t |
platform information
| oc_uuid_t* oc_core_get_device_id | ( | size_t | device | ) |
retrieve the id (uuid) of the device
| device | the device index |
| bool oc_core_get_device_index | ( | oc_uuid_t | di, |
| size_t * | device | ||
| ) |
retrieve the index of device with given id
| di | device id to be used for search | |
| [out] | device | device index of the device with the given id |
| oc_device_info_t* oc_core_get_device_info | ( | size_t | device | ) |
retrieve the device info from the device index
| device | the device index |
| int oc_core_get_latency | ( | void | ) |
retrieves the latency (lat) property in eps of the oic.wk.res resource.
the lat value is implemented globally for the stack
| size_t oc_core_get_num_devices | ( | void | ) |
retrieve the amount of devices
| oc_platform_info_t* oc_core_get_platform_info | ( | void | ) |
retrieve the platform information
| oc_resource_t* oc_core_get_resource_by_index | ( | int | type, |
| size_t | device | ||
| ) |
retrieve the resource by type (e.g.
index) on a specific device
| type | the index of the resource |
| device | the device index |
| oc_resource_t* oc_core_get_resource_by_uri | ( | const char * | uri, |
| size_t | device | ||
| ) |
retrieve a core resource by uri
| oc_resource_t* oc_core_get_resource_by_uri_v1 | ( | const char * | uri, |
| size_t | uri_len, | ||
| size_t | device | ||
| ) |
retrieve a core resource by uri
| uri | the uri (cannot be NULL) |
| uri_len | the length of the uri |
| device | the device index |
| bool oc_core_is_DCR | ( | const oc_resource_t * | resource, |
| size_t | device | ||
| ) |
determine if a resource is a Device Configuration Resource
| resource | the resource |
| device | the device index to which the resource belongs too |
| bool oc_core_is_SVR | ( | const oc_resource_t * | resource, |
| size_t | device | ||
| ) |
determine if a resource is Security Vertical Resource
| resource | the resource |
| device | the device index to which the resource belongs too |
| bool oc_core_is_vertical_resource | ( | const oc_resource_t * | resource, |
| size_t | device | ||
| ) |
determine if a resource is a vertical resource
| resource | the resource |
| device | the device index to which the resource belongs too |
| void oc_core_set_latency | ( | int | latency | ) |
set the latency (lat) property in eps of oic.wk.res resource.
The latency is implemented globally e.g. for all the resource instances. The default behaviour is that if nothing is set (e.g. value is 0) the lat property will not be framed in the eps property. Setting the value on 0 will cause that the lat property will not be framed in the eps property.
| [in] | latency | the latency in seconds |