Golioth Firmware SDK
Loading...
Searching...
No Matches
lightdb_state.h File Reference

Go to the source code of this file.

Functions

enum golioth_status golioth_lightdb_set_int_async (struct golioth_client *client, const char *path, int32_t value, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_set_int_sync (struct golioth_client *client, const char *path, int32_t value, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_set_bool_async (struct golioth_client *client, const char *path, bool value, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_set_bool_sync (struct golioth_client *client, const char *path, bool value, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_set_float_async (struct golioth_client *client, const char *path, float value, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_set_float_sync (struct golioth_client *client, const char *path, float value, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_set_string_async (struct golioth_client *client, const char *path, const char *str, size_t str_len, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_set_string_sync (struct golioth_client *client, const char *path, const char *str, size_t str_len, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_set_async (struct golioth_client *client, const char *path, enum golioth_content_type content_type, const uint8_t *buf, size_t buf_len, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_set_sync (struct golioth_client *client, const char *path, enum golioth_content_type content_type, const uint8_t *buf, size_t buf_len, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_get_async (struct golioth_client *client, const char *path, enum golioth_content_type content_type, golioth_get_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_get_int_sync (struct golioth_client *client, const char *path, int32_t *value, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_get_bool_sync (struct golioth_client *client, const char *path, bool *value, int32_t timeout_s)
 Similar to golioth_lightdb_get_int_sync, but for type bool.
 
enum golioth_status golioth_lightdb_get_float_sync (struct golioth_client *client, const char *path, float *value, int32_t timeout_s)
 Similar to golioth_lightdb_get_int_sync, but for type float.
 
enum golioth_status golioth_lightdb_get_string_sync (struct golioth_client *client, const char *path, char *strbuf, size_t strbuf_size, int32_t timeout_s)
 Similar to golioth_lightdb_get_int_sync, but for type string.
 
enum golioth_status golioth_lightdb_get_sync (struct golioth_client *client, const char *path, enum golioth_content_type content_type, uint8_t *buf, size_t *buf_size, int32_t timeout_s)
 Similar to golioth_lightdb_get_int_sync, but for objects.
 
enum golioth_status golioth_lightdb_delete_async (struct golioth_client *client, const char *path, golioth_set_cb_fn callback, void *callback_arg)
 
enum golioth_status golioth_lightdb_delete_sync (struct golioth_client *client, const char *path, int32_t timeout_s)
 
enum golioth_status golioth_lightdb_observe_async (struct golioth_client *client, const char *path, golioth_get_cb_fn callback, void *callback_arg)