nRF Connect SDK API 0.1.0
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
74
83int lwm2m_settings_bootstrap_from_smartcard_set(bool new_bootstrap_from_smartcard);
84
92
101int lwm2m_settings_is_bootstrap_server_set(bool new_is_bootstrap_server);
102
109
117int lwm2m_settings_server_uri_set(const char *new_server_uri);
118
125
133int lwm2m_settings_server_lifetime_set(const int32_t new_server_lifetime);
134
141
149int lwm2m_settings_server_binding_set(uint8_t new_server_binding);
150
157
165int lwm2m_settings_session_idle_timeout_set(const int32_t new_session_idle_timeout);
166
173
181int lwm2m_settings_coap_con_interval_set(const int32_t new_coap_con_interval);
182
189
197int lwm2m_settings_server_sec_tag_set(const uint32_t new_server_sec_tag);
198
204const char *lwm2m_settings_apn_get(void);
205
213int lwm2m_settings_apn_set(const char *new_apn);
214
221
229int lwm2m_settings_pdn_type_set(uint32_t new_pdn_type);
230
237
245int lwm2m_settings_enable_custom_device_config_set(bool new_enable_custom_device_config);
246
253
261int lwm2m_settings_manufacturer_set(const char *new_manufacturer);
262
269
277int lwm2m_settings_model_number_set(const char *new_model_number);
278
285
293int lwm2m_settings_device_type_set(const char *new_device_type);
294
301
309int lwm2m_settings_hardware_version_set(const char *new_hardware_version);
310
317
325int lwm2m_settings_software_version_set(const char *new_software_version);
326
333
341int lwm2m_settings_service_code_set(const char *new_service_code);
342
349
357int lwm2m_settings_device_serial_no_type_set(bool new_device_serial_no_type);
358
365
373int lwm2m_settings_firmware_download_timeout_set(const uint16_t new_firmware_download_timeout);
374
381
389int lwm2m_settings_queue_mode_set(bool new_queue_mode);
390
397
405int lwm2m_settings_auto_register_set(bool new_auto_register);
406
409#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.
bool lwm2m_settings_bootstrap_from_smartcard_get(void)
Determines whether bootstrap from Smartcard mode is disabled.
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_bootstrap_from_smartcard_set(bool new_bootstrap_from_smartcard)
Enable or disable bootstrap from Smartcard mode.
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.