92 void (*sol_lwm2m_bootstrap_server_request_cb)(
void *data,
107 void (*sol_lwm2m_bootstrap_server_request_cb)(
void *data,
132 uint16_t *instances_ids,
size_t len,
133 void (*sol_lwm2m_bootstrap_server_status_response_cb)(
void *data,
157 void (*sol_lwm2m_bootstrap_server_status_response_cb)(
void *data,
177 void (*sol_lwm2m_bootstrap_server_status_response_cb)(
void *data,
struct sol_lwm2m_bootstrap_server sol_lwm2m_bootstrap_server
A handle to a LWM2M bootstrap server.
Definition: sol-lwm2m-bs-server.h:47
const char * known_clients[]
Definition: lwm2m-bs-server.c:77
static struct sol_http_server * server
Definition: server-https.c:52
int sol_lwm2m_bootstrap_server_send_finish(struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client)
Signals the end of the Bootstrap Process.
int sol_lwm2m_bootstrap_server_write_object(struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, struct sol_lwm2m_resource **instances, size_t *instances_len, uint16_t *instances_ids, size_t len, void(*sol_lwm2m_bootstrap_server_status_response_cb)(void *data, struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, enum sol_coap_response_code response_code), const void *data)
Writes a full object through the Bootstrap Interface.
const char * sol_lwm2m_bootstrap_client_info_get_name(const struct sol_lwm2m_bootstrap_client_info *client)
Gets the name of bootstrap client.
int sol_lwm2m_bootstrap_server_add_request_monitor(struct sol_lwm2m_bootstrap_server *server, void(*sol_lwm2m_bootstrap_server_request_cb)(void *data, struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *bs_cinfo), const void *data)
Adds a bootstrap request monitor to the server.
Routines that handle the LWM2M protocol.
Structure to represent a network address, both IPv6 and IPv4 are valid.
Definition: sol-network.h:145
int sol_lwm2m_bootstrap_server_write(struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, struct sol_lwm2m_resource *resources, size_t len, void(*sol_lwm2m_bootstrap_server_status_response_cb)(void *data, struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, enum sol_coap_response_code response_code), const void *data)
Writes an object instance or resource through the Bootstrap Interface.
sol_coap_response_code
Set of response codes available for a response packet.
Definition: sol-coap.h:190
struct sol_lwm2m_bootstrap_server * sol_lwm2m_bootstrap_server_new(uint16_t port, const char **known_clients, uint16_t num_sec_modes,...)
Creates a new LWM2M bootstrap server.
struct sol_lwm2m_bootstrap_client_info sol_lwm2m_bootstrap_client_info
A handle that contains information about a bootstrapping LWM2M client.
Definition: sol-lwm2m-bs-server.h:54
static int port
Definition: server-sse.c:72
int sol_lwm2m_bootstrap_server_delete_object_instance(struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, void(*sol_lwm2m_bootstrap_server_status_response_cb)(void *data, struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *client, const char *path, enum sol_coap_response_code response_code), const void *data)
Deletes an object instance on a client through the Bootstrap Interface.
void sol_lwm2m_bootstrap_server_del(struct sol_lwm2m_bootstrap_server *server)
Deletes a bootstrap server instance.
int sol_lwm2m_bootstrap_server_del_request_monitor(struct sol_lwm2m_bootstrap_server *server, void(*sol_lwm2m_bootstrap_server_request_cb)(void *data, struct sol_lwm2m_bootstrap_server *server, struct sol_lwm2m_bootstrap_client_info *bs_cinfo), const void *data)
Removes a bootstrap request monitor from the server.
const struct sol_network_link_addr * sol_lwm2m_bootstrap_client_info_get_address(const struct sol_lwm2m_bootstrap_client_info *client)
Gets the bootstrap client address.
Struct that represents a LWM2M resource.
Definition: sol-lwm2m.h:355