184 const char* json_str,
201 const char* json_str,
426 const char* json_str,
435 const char* json_str,
443 const uint8_t* cbor_data,
444 size_t cbor_data_len,
452 const uint8_t* cbor_data,
453 size_t cbor_data_len,
void(* golioth_get_cb_fn)(golioth_client_t client, const golioth_response_t *response, const char *path, const uint8_t *payload, size_t payload_size, void *arg)
void * golioth_client_t
Opaque handle to the Golioth client.
void(* golioth_set_cb_fn)(golioth_client_t client, const golioth_response_t *response, const char *path, void *arg)
golioth_status_t golioth_lightdb_set_bool_sync(golioth_client_t client, const char *path, bool value, int32_t timeout_s)
golioth_status_t golioth_lightdb_stream_set_string_async(golioth_client_t client, const char *path, const char *str, size_t str_len, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_set_string_async, but for LightDB stream.
golioth_status_t golioth_lightdb_get_json_sync(golioth_client_t client, const char *path, char *strbuf, size_t strbuf_size, int32_t timeout_s)
Similar to golioth_lightdb_get_int_sync, but for string-encoded JSON objects.
golioth_status_t golioth_lightdb_set_string_async(golioth_client_t client, const char *path, const char *str, size_t str_len, golioth_set_cb_fn callback, void *callback_arg)
bool golioth_payload_is_null(const uint8_t *payload, size_t payload_size)
golioth_status_t golioth_lightdb_delete_async(golioth_client_t client, const char *path, golioth_set_cb_fn callback, void *callback_arg)
golioth_status_t golioth_lightdb_set_string_sync(golioth_client_t client, const char *path, const char *str, size_t str_len, int32_t timeout_s)
golioth_status_t golioth_lightdb_set_json_async(golioth_client_t client, const char *path, const char *json_str, size_t json_str_len, golioth_set_cb_fn callback, void *callback_arg)
golioth_status_t golioth_lightdb_get_float_sync(golioth_client_t client, const char *path, float *value, int32_t timeout_s)
Similar to golioth_lightdb_get_int_sync, but for type float.
golioth_status_t golioth_lightdb_delete_sync(golioth_client_t client, const char *path, int32_t timeout_s)
golioth_status_t golioth_lightdb_observe_async(golioth_client_t client, const char *path, golioth_get_cb_fn callback, void *callback_arg)
golioth_status_t golioth_lightdb_set_bool_async(golioth_client_t client, const char *path, bool value, golioth_set_cb_fn callback, void *callback_arg)
int32_t golioth_payload_as_int(const uint8_t *payload, size_t payload_size)
golioth_status_t golioth_lightdb_stream_set_float_async(golioth_client_t client, const char *path, float value, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_set_float_async, but for LightDB stream.
float golioth_payload_as_float(const uint8_t *payload, size_t payload_size)
golioth_status_t golioth_lightdb_stream_set_int_sync(golioth_client_t client, const char *path, int32_t value, int32_t timeout_s)
Similar to golioth_lightdb_set_int_sync, but for LightDB stream.
golioth_status_t golioth_lightdb_stream_set_bool_async(golioth_client_t client, const char *path, bool value, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_set_bool_async, but for LightDB stream.
golioth_status_t golioth_lightdb_set_int_async(golioth_client_t client, const char *path, int32_t value, golioth_set_cb_fn callback, void *callback_arg)
golioth_status_t golioth_lightdb_get_bool_sync(golioth_client_t client, const char *path, bool *value, int32_t timeout_s)
Similar to golioth_lightdb_get_int_sync, but for type bool.
golioth_status_t golioth_lightdb_stream_set_float_sync(golioth_client_t client, const char *path, float value, int32_t timeout_s)
Similar to golioth_lightdb_set_float_sync, but for LightDB stream.
golioth_status_t golioth_lightdb_stream_set_json_sync(golioth_client_t client, const char *path, const char *json_str, size_t json_str_len, int32_t timeout_s)
Similar to golioth_lightdb_set_json_sync, but for LightDB stream.
golioth_status_t golioth_lightdb_set_int_sync(golioth_client_t client, const char *path, int32_t value, int32_t timeout_s)
golioth_status_t golioth_lightdb_stream_set_json_async(golioth_client_t client, const char *path, const char *json_str, size_t json_str_len, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_set_json_async, but for LightDB stream.
golioth_status_t golioth_lightdb_set_float_async(golioth_client_t client, const char *path, float value, golioth_set_cb_fn callback, void *callback_arg)
golioth_status_t golioth_lightdb_stream_set_string_sync(golioth_client_t client, const char *path, const char *str, size_t str_len, int32_t timeout_s)
Similar to golioth_lightdb_set_string_sync, but for LightDB stream.
golioth_status_t golioth_lightdb_stream_set_cbor_sync(golioth_client_t client, const char *path, const uint8_t *cbor_data, size_t cbor_data_len, int32_t timeout_s)
Similar to golioth_lightdb_stream_set_json_sync, but for CBOR.
golioth_status_t golioth_lightdb_stream_set_int_async(golioth_client_t client, const char *path, int32_t value, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_set_int_async, but for LightDB stream.
golioth_status_t golioth_lightdb_set_float_sync(golioth_client_t client, const char *path, float value, int32_t timeout_s)
golioth_status_t golioth_lightdb_set_json_sync(golioth_client_t client, const char *path, const char *json_str, size_t json_str_len, int32_t timeout_s)
golioth_status_t golioth_lightdb_get_string_sync(golioth_client_t 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.
golioth_status_t golioth_lightdb_stream_set_cbor_async(golioth_client_t client, const char *path, const uint8_t *cbor_data, size_t cbor_data_len, golioth_set_cb_fn callback, void *callback_arg)
Similar to golioth_lightdb_stream_set_json_async, but for CBOR.
golioth_status_t golioth_lightdb_get_async(golioth_client_t client, const char *path, golioth_get_cb_fn callback, void *callback_arg)
bool golioth_payload_as_bool(const uint8_t *payload, size_t payload_size)
golioth_status_t golioth_lightdb_get_int_sync(golioth_client_t client, const char *path, int32_t *value, int32_t timeout_s)
golioth_status_t golioth_lightdb_stream_set_bool_sync(golioth_client_t client, const char *path, bool value, int32_t timeout_s)
Similar to golioth_lightdb_set_bool_sync, but for LightDB stream.