83 #ifndef SOL_NO_API_VERSION
84 #define SOL_LWM2M_OBJECT_API_VERSION (1)
129 int (*
read)(
void *instance_data,
void *user_data,
196 int (*
execute)(
void *instance_data,
void *user_data,
209 int (*
del)(
void *instance_data,
void *user_data,
327 void (*sol_lwm2m_client_bootstrap_event_cb)(
void *data,
342 void (*sol_lwm2m_client_bootstrap_event_cb)(
void *data,
int sol_lwm2m_client_del_bootstrap_finish_monitor(struct sol_lwm2m_client *client, void(*sol_lwm2m_client_bootstrap_event_cb)(void *data, struct sol_lwm2m_client *client, enum sol_lwm2m_bootstrap_event event), const void *data)
Removes a bootstrap monitor from the client.
int(* execute)(void *instance_data, void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id, uint16_t res_id, const struct sol_str_slice args)
Executes a resource.
Definition: sol-lwm2m-client.h:196
Indicates that an error occurred during the bootstrap process.
Definition: sol-lwm2m-client.h:62
uint16_t id
The object id.
Definition: sol-lwm2m-client.h:90
A LWM2M object implementation.
Definition: sol-lwm2m-client.h:82
int(* del)(void *instance_data, void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id)
Deletes an object instance.
Definition: sol-lwm2m-client.h:209
int sol_lwm2m_client_stop(struct sol_lwm2m_client *client)
Stops the LWM2M client.
int sol_lwm2m_client_send_update(struct sol_lwm2m_client *client)
Sends an update message to the LWM2M servers.
Routines that handle the LWM2M protocol.
String slice type.
Definition: sol-str-slice.h:84
int sol_lwm2m_client_start(struct sol_lwm2m_client *client)
Starts the LWM2M client.
struct sol_lwm2m_client * sol_lwm2m_client_new(const char *name, const char *path, const char *sms, const struct sol_lwm2m_object **objects, const void *data)
Creates a new LWM2M client.
uint16_t api_version
API version.
Definition: sol-lwm2m-client.h:86
uint16_t resources_count
Definition: sol-lwm2m-client.h:93
A payload received from the network used to create a LWM2M object instance.
Definition: sol-lwm2m.h:495
int(* read)(void *instance_data, void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id, uint16_t res_id, struct sol_lwm2m_resource *res)
Reads a resource.
Definition: sol-lwm2m-client.h:129
int(* create)(void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id, void **instance_data, struct sol_lwm2m_payload payload)
Creates a new object instance.
Definition: sol-lwm2m-client.h:106
struct sol_lwm2m_object sol_lwm2m_object
A LWM2M object implementation.
Indicates that a server finished bootstrapping the client.
Definition: sol-lwm2m-client.h:58
int sol_lwm2m_client_add_bootstrap_finish_monitor(struct sol_lwm2m_client *client, void(*sol_lwm2m_client_bootstrap_event_cb)(void *data, struct sol_lwm2m_client *client, enum sol_lwm2m_bootstrap_event event), const void *data)
Adds a bootstrap monitor to the client.
struct sol_lwm2m_client sol_lwm2m_client
A handle to a LWM2M client.
Definition: sol-lwm2m-client.h:47
sol_lwm2m_bootstrap_event
Enum that express the bootstrapping lifecycle.
Definition: sol-lwm2m-client.h:54
int(* write_resource)(void *instance_data, void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id, uint16_t res_id, const struct sol_lwm2m_resource *res)
Writes a resource.
Definition: sol-lwm2m-client.h:150
Soletta vector is an array that grows dynamically.
Definition: sol-vector.h:58
int sol_lwm2m_client_add_object_instance(struct sol_lwm2m_client *client, const struct sol_lwm2m_object *obj, const void *data)
Creates an object instance.
void sol_lwm2m_client_del(struct sol_lwm2m_client *client)
Deletes a LWM2M client.
union sol_lwm2m_payload::sol_lwm2m_payload_data payload
The payload data.
int sol_lwm2m_client_notify(struct sol_lwm2m_client *client, const char **paths)
Notifies all the observing LWM2M servers that a resource has changed.
int(* write_tlv)(void *instance_data, void *user_data, struct sol_lwm2m_client *client, uint16_t instance_id, struct sol_vector *tlvs)
Writes a resource(s).
Definition: sol-lwm2m-client.h:173
Struct that represents a LWM2M resource.
Definition: sol-lwm2m.h:355