Golioth Zephyr SDK
golioth_req_rsp Struct Reference

Information about response to user request. More...

#include <req.h>

Data Fields

const uint8_t * data
 
size_t len
 
size_t off
 
size_t total
 
golioth_get_next_cb_t get_next
 
void * get_next_data
 
void * user_data
 
int err
 

Detailed Description

Information about response to user request.

Stores information about receive response, acknowledgment, error condition (e.g. timeout, error received from server).

If err is <0, then request failed with error and just user_data stores valid information. If err is 0, then response was successfully received (either with data, or just an acknowledgment).

Definition at line 30 of file req.h.

Field Documentation

◆ data

const uint8_t* golioth_req_rsp::data

Definition at line 31 of file req.h.

◆ err

int golioth_req_rsp::err

Definition at line 43 of file req.h.

◆ get_next

golioth_get_next_cb_t golioth_req_rsp::get_next

Definition at line 38 of file req.h.

◆ get_next_data

void* golioth_req_rsp::get_next_data

Definition at line 39 of file req.h.

◆ len

size_t golioth_req_rsp::len

Definition at line 32 of file req.h.

◆ off

size_t golioth_req_rsp::off

Definition at line 33 of file req.h.

◆ total

size_t golioth_req_rsp::total

Definition at line 35 of file req.h.

◆ user_data

void* golioth_req_rsp::user_data

Definition at line 41 of file req.h.


The documentation for this struct was generated from the following file: