nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
lwm2m_settings.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef LWM2M_SETTINGS_H__
8#define LWM2M_SETTINGS_H__
9
17#include <stdint.h>
18#include <stdbool.h>
19
26
34int lwm2m_settings_auto_startup_set(bool new_auto_startup);
35
42
50int lwm2m_settings_enable_custom_config_set(bool new_enable_custom_config);
51
58
66int lwm2m_settings_carriers_enabled_set(uint32_t new_carriers_enabled);
67
75
84int lwm2m_settings_is_bootstrap_server_set(bool new_is_bootstrap_server);
85
92
100int lwm2m_settings_server_uri_set(const char *new_server_uri);
101
108
116int lwm2m_settings_server_lifetime_set(const int32_t new_server_lifetime);
117
124
132int lwm2m_settings_server_binding_set(uint8_t new_server_binding);
133
140
148int lwm2m_settings_session_idle_timeout_set(const int32_t new_session_idle_timeout);
149
156
164int lwm2m_settings_coap_con_interval_set(const int32_t new_coap_con_interval);
165
172
180int lwm2m_settings_server_sec_tag_set(const uint32_t new_server_sec_tag);
181
187const char *lwm2m_settings_apn_get(void);
188
196int lwm2m_settings_apn_set(const char *new_apn);
197
204
212int lwm2m_settings_pdn_type_set(uint32_t new_pdn_type);
213
220
228int lwm2m_settings_enable_custom_device_config_set(bool new_enable_custom_device_config);
229
236
244int lwm2m_settings_manufacturer_set(const char *new_manufacturer);
245
252
260int lwm2m_settings_model_number_set(const char *new_model_number);
261
268
276int lwm2m_settings_device_type_set(const char *new_device_type);
277
284
292int lwm2m_settings_hardware_version_set(const char *new_hardware_version);
293
300
308int lwm2m_settings_software_version_set(const char *new_software_version);
309
316
324int lwm2m_settings_service_code_set(const char *new_service_code);
325
332
340int lwm2m_settings_device_serial_no_type_set(bool new_device_serial_no_type);
341
348
356int lwm2m_settings_firmware_download_timeout_set(const uint16_t new_firmware_download_timeout);
357
364
372int lwm2m_settings_queue_mode_set(bool new_queue_mode);
373
380
388int lwm2m_settings_auto_register_set(bool new_auto_register);
389
392#endif /* LWM2M_SETTINGS_H__ */
int lwm2m_settings_enable_custom_device_config_set(bool new_enable_custom_device_config)
Enable or disable the LwM2M device custom settings.
int lwm2m_settings_software_version_set(const char *new_software_version)
Set or update the LwM2M device software version in the custom LwM2M settings.
bool lwm2m_settings_auto_startup_get(void)
Check if automatic startup is enabled.
bool lwm2m_settings_device_serial_no_type_get(void)
Determines the LG U+ Device Serial Number type to be used.
int lwm2m_settings_apn_set(const char *new_apn)
Set or update the APN in the custom LwM2M settings.
int lwm2m_settings_server_sec_tag_set(const uint32_t new_server_sec_tag)
Set or update the security tag in the custom LwM2M settings.
int lwm2m_settings_model_number_set(const char *new_model_number)
Set or update the LwM2M device model number in the custom LwM2M settings.
bool lwm2m_settings_enable_custom_device_config_get(void)
Determines whether the LwM2M custom device settings are enabled.
uint8_t lwm2m_settings_server_binding_get(void)
Retrieve the server binding from the custom LwM2M settings.
const char * lwm2m_settings_service_code_get(void)
Retrieve the LG U+ Service Code from the custom LwM2M settings.
const char * lwm2m_settings_software_version_get(void)
Retrieve the LwM2M device software version from the custom LwM2M settings.
int lwm2m_settings_server_binding_set(uint8_t new_server_binding)
Set or update the server binding in the custom LwM2M settings.
int lwm2m_settings_queue_mode_set(bool new_queue_mode)
Enable or disable queue mode.
uint32_t lwm2m_settings_carriers_enabled_get(void)
Determines which carriers are enabled.
int lwm2m_settings_coap_con_interval_set(const int32_t new_coap_con_interval)
Set or update the CoAP CON interval in the custom LwM2M settings.
int lwm2m_settings_pdn_type_set(uint32_t new_pdn_type)
Set or update the PDN type in the custom LwM2M settings.
int lwm2m_settings_device_serial_no_type_set(bool new_device_serial_no_type)
Indicate the LG U+ Device Serial Number type to be used.
int32_t lwm2m_settings_session_idle_timeout_get(void)
Retrieve DTLS session idle timeout from the custom LwM2M settings.
int lwm2m_settings_hardware_version_set(const char *new_hardware_version)
Set or update the LwM2M device hardware version in the custom LwM2M settings.
const char * lwm2m_settings_model_number_get(void)
Retrieve the LwM2M device model number from the custom LwM2M settings.
int32_t lwm2m_settings_coap_con_interval_get(void)
Retrieve CoAP CON interval from the custom LwM2M settings.
bool lwm2m_settings_is_bootstrap_server_get(void)
Determines whether server_uri is an LwM2M Bootstrap-Server or an LwM2M Server.
const char * lwm2m_settings_server_uri_get(void)
Retrieve the server URI from the custom LwM2M settings.
const char * lwm2m_settings_manufacturer_get(void)
Retrieve the LwM2M device manufacturer name from the custom LwM2M settings.
int lwm2m_settings_server_lifetime_set(const int32_t new_server_lifetime)
Set or update the server lifetime in the custom LwM2M settings.
int lwm2m_settings_auto_startup_set(bool new_auto_startup)
Enable or disable automatic startup.
bool lwm2m_settings_auto_register_get(void)
Determines whether automatic registration on LTE Attach is disabled.
int lwm2m_settings_carriers_enabled_set(uint32_t new_carriers_enabled)
Set enabled carriers.
int lwm2m_settings_auto_register_set(bool new_auto_register)
Enable or disable automatic registration on LTE Attach.
int lwm2m_settings_device_type_set(const char *new_device_type)
Set or update the LwM2M device type in the custom LwM2M settings.
bool lwm2m_settings_enable_custom_config_get(void)
Determines whether the LwM2M custom settings are enabled.
int lwm2m_settings_session_idle_timeout_set(const int32_t new_session_idle_timeout)
Set or update the DTLS session idle timeout in the custom LwM2M settings.
uint16_t lwm2m_settings_firmware_download_timeout_get(void)
Retrieve the firmware download timeout from the custom LwM2M settings.
int lwm2m_settings_is_bootstrap_server_set(bool new_is_bootstrap_server)
Indicate if server_uri is an LwM2M Bootstrap-Server or an LwM2M Server.
int lwm2m_settings_enable_custom_config_set(bool new_enable_custom_config)
Enable or disable the LwM2M custom settings.
const char * lwm2m_settings_apn_get(void)
Retrieve the APN from the custom LwM2M settings.
int lwm2m_settings_manufacturer_set(const char *new_manufacturer)
Set or update the LwM2M device manufacturer name in the custom LwM2M settings.
const char * lwm2m_settings_hardware_version_get(void)
Retrieve the LwM2M device hardware version from the custom LwM2M settings.
int lwm2m_settings_service_code_set(const char *new_service_code)
Set or update the LG U+ Service Code in the custom LwM2M settings.
bool lwm2m_settings_queue_mode_get(void)
Determines whether queue mode is disabled.
int32_t lwm2m_settings_server_lifetime_get(void)
Retrieve the server lifetime from the custom LwM2M settings.
const char * lwm2m_settings_device_type_get(void)
Retrieve the LwM2M device type from the custom LwM2M settings.
int32_t lwm2m_settings_pdn_type_get(void)
Retrieve PDN type from the custom LwM2M settings.
uint32_t lwm2m_settings_server_sec_tag_get(void)
Retrieve the security tag from the custom LwM2M settings.
int lwm2m_settings_server_uri_set(const char *new_server_uri)
Set or update the server URI in the custom LwM2M settings.
int lwm2m_settings_firmware_download_timeout_set(const uint16_t new_firmware_download_timeout)
Set or update the firmware download timeout in the custom LwM2M settings.