|
IoTivity-Lite
|
Functions | |
| oc_endpoint_address_t * | oc_cloud_add_server_address (oc_cloud_context_t *ctx, const char *uri, size_t uri_len, oc_uuid_t sid) |
| Allocate and add an endpoint address to the list of cloud server addresses. More... | |
| void | oc_cloud_iterate_server_addresses (const oc_cloud_context_t *ctx, oc_endpoint_addresses_iterate_fn_t fn, void *data) |
| Iterate over cloud server addresses. More... | |
| bool | oc_cloud_remove_server_address (oc_cloud_context_t *ctx, const oc_endpoint_address_t *ea) |
| Remove an endpoint address from the list of cloud server addresses. More... | |
| bool | oc_cloud_select_server_address (oc_cloud_context_t *ctx, const oc_endpoint_address_t *ea) |
| Select an address from the list of cloud server addresses. More... | |
| const oc_endpoint_address_t * | oc_cloud_selected_server_address (const oc_cloud_context_t *ctx) |
| Get the selected cloud server address. More... | |
| oc_endpoint_address_t* oc_cloud_add_server_address | ( | oc_cloud_context_t * | ctx, |
| const char * | uri, | ||
| size_t | uri_len, | ||
| oc_uuid_t | sid | ||
| ) |
Allocate and add an endpoint address to the list of cloud server addresses.
| ctx | cloud context (cannot be NULL) |
| uri | endpoint address (cannot be NULL; the uri must be at least 1 character long and less than OC_ENDPOINT_MAX_ENDPOINT_URI_LENGTH characters long, otherwise the call will fail) |
| uri_len | length of uri |
| sid | identity of the cloud server |
| void oc_cloud_iterate_server_addresses | ( | const oc_cloud_context_t * | ctx, |
| oc_endpoint_addresses_iterate_fn_t | fn, | ||
| void * | data | ||
| ) |
Iterate over cloud server addresses.
| ctx | cloud context (cannot be NULL) |
| fn | callback function invoked for each cloud server address (cannot be NULL) |
| data | custom user data provided to fn |
fn must not modify the list of cloud server addresses. | bool oc_cloud_remove_server_address | ( | oc_cloud_context_t * | ctx, |
| const oc_endpoint_address_t * | ea | ||
| ) |
Remove an endpoint address from the list of cloud server addresses.
| ctx | cloud context (cannot be NULL) |
| ea | endpoint address to remove |
| bool oc_cloud_select_server_address | ( | oc_cloud_context_t * | ctx, |
| const oc_endpoint_address_t * | ea | ||
| ) |
Select an address from the list of cloud server addresses.
| ctx | cloud context (cannot be NULL) |
| ea | cloud server address to select (cannot be NULL; must be in the list of cloud servers) |
| const oc_endpoint_address_t* oc_cloud_selected_server_address | ( | const oc_cloud_context_t * | ctx | ) |
Get the selected cloud server address.
| ctx | cloud context (cannot be NULL) |