187 cp_res
cloudplugs_set_auth(cp_session cps,
const char*
id,
const char* pass, cp_bool is_master);
350 cp_res
cloudplugs_uncontrol_device(cp_session cps,
const char* plugid,
const char* plugid_controlled,
char** result,
size_t* result_length);
361 cp_res
cloudplugs_get_device(cp_session cps,
const char* plugid,
char** result,
size_t* result_length);
373 cp_res
cloudplugs_get_device_prop(cp_session cps,
const char* plugid,
const char* prop,
char** result,
size_t* result_length);
412 cp_res
cloudplugs_set_device(cp_session cps,
const char* plugid,
const char* value,
char** result,
size_t* result_length);
423 cp_res
cloudplugs_unenroll(cp_session cps,
const char* plugid,
char** result,
size_t* result_length);
441 cp_res
cloudplugs_get_channel(cp_session cps,
const char* channel_mask,
const char* query,
char** result,
size_t* result_length);
459 cp_res
cloudplugs_retrieve_data(cp_session cps,
const char* channel_mask,
const char* query,
char** result,
size_t* result_length);
481 cp_res
cloudplugs_publish_data(cp_session cps,
const char* channel,
const char* body,
char** result,
size_t* result_length);
500 cp_res
cloudplugs_remove_data(cp_session cps,
const char* channel_mask,
const char* body,
char** result,
size_t* result_length);
514 cp_res
cloudplugs_set_device_location(cp_session cps,
const char* plugid,
double longitude,
double latitude,
double altitude,
double accuracy,
double timestamp);
cp_res cloudplugs_unenroll(cp_session cps, const char *plugid, char **result, size_t *result_length)
cp_res cloudplugs_set_timeout(cp_session cps, int timeout)
cp_res cloudplugs_set_auth(cp_session cps, const char *id, const char *pass, cp_bool is_master)
CP_HTTP_RESULT cloudplugs_get_last_http_result(cp_session cps)
cp_res cloudplugs_control_device(cp_session cps, const char *body, char **result, size_t *result_length)
cp_res cloudplugs_get_auth_pass(cp_session cps, char *password, size_t size)
cp_res cloudplugs_publish_data(cp_session cps, const char *channel, const char *body, char **result, size_t *result_length)
cp_res cloudplugs_get_auth_id(cp_session cps, char *id, size_t size)
enum _CP_HTTP_RESULT CP_HTTP_RESULT
Definition: cp_rest.h:58
cp_res cloudplugs_global_init()
_CP_HTTP_RESULT
Definition: cp_rest.h:43
cp_res cloudplugs_set_cacert(cp_session cps, const char *filename)
cp_res cloudplugs_get_channel(cp_session cps, const char *channel_mask, const char *query, char **result, size_t *result_length)
_CP_ERR_CODE
Definition: cp_rest.h:62
const char * cloudplugs_get_base_url(cp_session cps)
cp_res cloudplugs_set_device_prop(cp_session cps, const char *plugid, const char *prop, const char *value)
enum _CP_ERR_CODE CP_ERR_CODE
Definition: cp_rest.h:77
cp_res cloudplugs_enroll_ctrl(cp_session cps, const char *body, char **result, size_t *result_length)
cp_res cloudplugs_ssl_verify(cp_session cps, cp_bool is_verified)
cp_res cloudplugs_destroy_session(cp_session cps)
int cp_res
Definition: cp_rest.h:35
cp_bool cloudplugs_extract_string_from_json(char **json, const char *key, char *res, const int n)
int cloudplugs_get_timeout(cp_session cps)
cp_bool cloudplugs_has_ssl_verify(cp_session cps)
cp_res cloudplugs_set_base_url(cp_session cps, const char *url)
const char * cloudplugs_get_last_err_string(cp_session cps)
cp_res cloudplugs_get_device_location(cp_session cps, const char *plugid, char **result, size_t *result_length)
cp_res cloudplugs_remove_device_prop(cp_session cps, const char *plugid, const char *prop)
cp_res cloudplugs_get_device(cp_session cps, const char *plugid, char **result, size_t *result_length)
cp_res cloudplugs_get_device_prop(cp_session cps, const char *plugid, const char *prop, char **result, size_t *result_length)
CP_ERR_CODE cloudplugs_get_last_err_code(cp_session cps)
struct _cloudplugs_session * cp_session
Definition: cp_rest.h:31
cp_session cloudplugs_create_session()
cp_res cloudplugs_enroll_prototype(cp_session cps, const char *body, char **result, size_t *result_length)
cp_res cloudplugs_remove_data(cp_session cps, const char *channel_mask, const char *body, char **result, size_t *result_length)
cp_res cloudplugs_enable_ssl(cp_session cps, cp_bool is_enabled)
cp_res cloudplugs_uncontrol_device(cp_session cps, const char *plugid, const char *plugid_controlled, char **result, size_t *result_length)
cp_res cloudplugs_enroll_product(cp_session cps, const char *body, char **result, size_t *result_length)
int cp_bool
Definition: cp_rest.h:37
const char * cloudplugs_get_last_http_result_string(cp_session cps)
cp_bool cloudplugs_is_auth_master(cp_session cps)
cp_res cloudplugs_set_device(cp_session cps, const char *plugid, const char *value, char **result, size_t *result_length)
cp_bool cloudplugs_has_ssl(cp_session cps)
cp_res cloudplugs_retrieve_data(cp_session cps, const char *channel_mask, const char *query, char **result, size_t *result_length)
cp_res cloudplugs_global_shutdown()
cp_res cloudplugs_set_device_location(cp_session cps, const char *plugid, double longitude, double latitude, double altitude, double accuracy, double timestamp)