7 #ifndef GOLIOTH_INCLUDE_NET_GOLIOTH_LIGHTDB_H_
8 #define GOLIOTH_INCLUDE_NET_GOLIOTH_LIGHTDB_H_
11 #include <zephyr/net/coap.h>
61 uint8_t *data,
size_t *len);
84 const uint8_t *data,
size_t data_len,
103 const uint8_t *data,
size_t data_len);
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)
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)
int golioth_lightdb_delete(struct golioth_client *client, const uint8_t *path)
Delete value in Golioth's LightDB (synchronous)
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)
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)
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)
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)
golioth_content_format
Set of Content-Format option values for Golioth APIs.
int(* golioth_req_cb_t)(struct golioth_req_rsp *rsp)
User callback for handling valid response from server or error condition.
Represents a Golioth client instance.