Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
m2minterface.h File Reference
M2MInterface. This class provides an interface for handling all mbed Client interface operations defined in the OMA LWM2M specifications. This includes Bootstrapping, Client Registration, Device Management & Service Enablement and Information Reporting. More...
Go to the source code of this file.
Typedefs | |
typedef void(* | request_data_cb )(const uint8_t *buffer, size_t buffer_size, size_t total_size, bool last_block, void *context) |
A callback function to receive data from GET request. Transfer is completed once total size equals to received size. Caller needs to take care of counting how many bytes it has received. | |
typedef void(* | request_error_cb )(request_error_t error_code, void *context) |
A callback function to receive errors from GET transfer. |
Detailed Description
M2MInterface. This class provides an interface for handling all mbed Client interface operations defined in the OMA LWM2M specifications. This includes Bootstrapping, Client Registration, Device Management & Service Enablement and Information Reporting.
Definition in file m2minterface.h.
Typedef Documentation
typedef void(* request_data_cb)(const uint8_t *buffer, size_t buffer_size, size_t total_size, bool last_block, void *context) |
A callback function to receive data from GET request. Transfer is completed once total size equals to received size. Caller needs to take care of counting how many bytes it has received.
- Parameters:
-
buffer Buffer containing the payload. buffer_size Size of the payload. total_size Total size of the package. This information is available only in first package. Caller must store this information to detect when the download has completed. last_block True when this is the last block received, false if more blocks will come. context Application context
Definition at line 58 of file m2minterface.h.
typedef void(* request_error_cb)(request_error_t error_code, void *context) |
A callback function to receive errors from GET transfer.
- Parameters:
-
error_code context Application context
Definition at line 70 of file m2minterface.h.
Generated on Tue Jul 12 2022 20:21:04 by
