Golioth Zephyr SDK
lightdb.h File Reference
#include <stdint.h>
#include <zephyr/net/coap.h>
#include <net/golioth/req.h>

Go to the source code of this file.

Functions

int golioth_lightdb_get_cb (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, golioth_req_cb_t cb, void *user_data)
 Get value from Golioth's LightDB (callback based) More...
 
int golioth_lightdb_get (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, uint8_t *data, size_t *len)
 Get value from Golioth's LightDB (synchronous, into preallocated buffer) More...
 
int golioth_lightdb_set_cb (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, const uint8_t *data, size_t data_len, golioth_req_cb_t cb, void *user_data)
 Set value to Golioth's LightDB (callback based) More...
 
int golioth_lightdb_set (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, const uint8_t *data, size_t data_len)
 Set value to Golioth's LightDB (synchronously) More...
 
int golioth_lightdb_observe_cb (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, golioth_req_cb_t cb, void *user_data)
 Observe value in Golioth's LightDB (callback based) More...
 
int golioth_lightdb_delete_cb (struct golioth_client *client, const uint8_t *path, golioth_req_cb_t cb, void *user_data)
 Delete value in Golioth's LightDB (callback based) More...
 
int golioth_lightdb_delete (struct golioth_client *client, const uint8_t *path)
 Delete value in Golioth's LightDB (synchronous) More...