162 const uint8_t *payload,
193 const uint8_t *payload,
void * golioth_sys_thread_t
void(* golioth_get_cb_fn)(struct golioth_client *client, enum golioth_status status, const struct golioth_coap_rsp_code *coap_rsp_code, const char *path, const uint8_t *payload, size_t payload_size, void *arg)
golioth_auth_type
Authentication type.
void(* golioth_set_cb_fn)(struct golioth_client *client, enum golioth_status status, const struct golioth_coap_rsp_code *coap_rsp_code, const char *path, void *arg)
golioth_content_type
Golioth Content Type.
bool golioth_client_is_connected(struct golioth_client *client)
enum golioth_status golioth_client_start(struct golioth_client *client)
bool golioth_client_wait_for_connect(struct golioth_client *client, int timeout_ms)
void golioth_client_register_event_callback(struct golioth_client *client, golioth_client_event_cb_fn callback, void *arg)
bool golioth_client_is_running(struct golioth_client *client)
uint32_t golioth_client_num_items_in_request_queue(struct golioth_client *client)
golioth_client_event
Golioth client events.
enum golioth_status golioth_client_stop(struct golioth_client *client)
void golioth_client_destroy(struct golioth_client *client)
struct golioth_client * golioth_client_create(const struct golioth_client_config *config)
golioth_sys_thread_t golioth_client_get_thread(struct golioth_client *client)
void(* golioth_get_block_cb_fn)(struct golioth_client *client, enum golioth_status status, const struct golioth_coap_rsp_code *coap_rsp_code, const char *path, const uint8_t *payload, size_t payload_size, bool is_last, void *arg)
void golioth_client_set_packet_loss_percent(uint8_t percent)
void(* golioth_client_event_cb_fn)(struct golioth_client *client, enum golioth_client_event event, void *arg)
@ GOLIOTH_TLS_AUTH_TYPE_TAG
Authenticate with TLS credential tag (Zephyr specific)
@ GOLIOTH_TLS_AUTH_TYPE_PKI
Authenticate with PKI certificates (CA cert, public client cert, private client key)
@ GOLIOTH_TLS_AUTH_TYPE_PSK
Authenticate with pre-shared key (psk-id and psk)
@ GOLIOTH_CONTENT_TYPE_JSON
@ GOLIOTH_CONTENT_TYPE_CBOR
@ GOLIOTH_CONTENT_TYPE_OCTET_STREAM
@ GOLIOTH_CLIENT_EVENT_CONNECTED
Client was previously not connected, and is now connected.
@ GOLIOTH_CLIENT_EVENT_DISCONNECTED
Client was previously connected, and is now disconnected.
Golioth client configuration, passed into golioth_client_create.
struct golioth_credential credentials
CoAP response code returned by server.
uint8_t code_detail
the 03 in 4.03
TLS Authentication Credential.
enum golioth_auth_type auth_type
struct golioth_pki_credential pki
struct golioth_psk_credential psk
const uint8_t * public_cert
DER Public client cert.
const uint8_t * secondary_ca_cert
DER secondary Common CA cert.
size_t secondary_ca_cert_len
const uint8_t * private_key
DER Private client key.
const char * psk
Pre-shared key, secret password.
const char * psk_id
PSK Identifier (e.g. "devicename@projectname")