Anjay Lite
Loading...
Searching...
No Matches
anj_config.h File Reference

Go to the source code of this file.

Macros

#define ANJ_IN_MSG_BUFFER_SIZE   1200
 
#define ANJ_OUT_MSG_BUFFER_SIZE   1200
 
#define ANJ_OUT_PAYLOAD_BUFFER_SIZE   1024
 
#define ANJ_DM_MAX_OBJECTS_NUMBER   10
 
#define ANJ_WITH_COMPOSITE_OPERATIONS
 
#define ANJ_DM_MAX_COMP_READ_ENTRIES   5
 
#define ANJ_WITH_DEFAULT_DEVICE_OBJ
 
#define ANJ_WITH_DEFAULT_SECURITY_OBJ
 
#define ANJ_SEC_OBJ_MAX_PUBLIC_KEY_OR_IDENTITY_SIZE   255
 
#define ANJ_SEC_OBJ_MAX_SERVER_PUBLIC_KEY_SIZE   255
 
#define ANJ_SEC_OBJ_MAX_SECRET_KEY_SIZE   255
 
#define ANJ_WITH_DEFAULT_SERVER_OBJ
 
#define ANJ_WITH_DEFAULT_FOTA_OBJ
 
#define ANJ_FOTA_WITH_PULL_METHOD
 
#define ANJ_FOTA_WITH_PUSH_METHOD
 
#define ANJ_FOTA_WITH_COAP
 
#define ANJ_FOTA_WITH_COAPS
 
#define ANJ_FOTA_WITH_HTTP
 
#define ANJ_FOTA_WITH_HTTPS
 
#define ANJ_FOTA_WITH_COAP_TCP
 
#define ANJ_FOTA_WITH_COAPS_TCP
 
#define ANJ_WITH_COAP_DOWNLOADER
 
#define ANJ_COAP_DOWNLOADER_MAX_PATHS_NUMBER   3
 
#define ANJ_COAP_DOWNLOADER_MAX_MSG_SIZE   1200
 
#define ANJ_WITH_OBSERVE
 
#define ANJ_WITH_OBSERVE_COMPOSITE
 
#define ANJ_OBSERVE_MAX_OBSERVATIONS_NUMBER   10
 
#define ANJ_OBSERVE_MAX_WRITE_ATTRIBUTES_NUMBER   10
 
#define ANJ_WITH_BOOTSTRAP
 
#define ANJ_WITH_BOOTSTRAP_DISCOVER
 
#define ANJ_WITH_DISCOVER
 
#define ANJ_WITH_DISCOVER_ATTR
 
#define ANJ_WITH_LWM2M_SEND
 
#define ANJ_LWM2M_SEND_QUEUE_SIZE   1
 
#define ANJ_WITH_TIME_POSIX_COMPAT
 
#define ANJ_WITH_SOCKET_POSIX_COMPAT
 
#define ANJ_NET_WITH_IPV4
 
#define ANJ_NET_WITH_IPV6
 
#define ANJ_NET_WITH_UDP
 
#define ANJ_NET_WITH_TCP
 
#define ANJ_WITH_EXTERNAL_DATA
 
#define ANJ_WITH_CBOR
 
#define ANJ_WITH_CBOR_DECODE_DECIMAL_FRACTIONS
 
#define ANJ_WITH_CBOR_DECODE_HALF_FLOAT
 
#define ANJ_WITH_CBOR_DECODE_INDEFINITE_BYTES
 
#define ANJ_WITH_CBOR_DECODE_STRING_TIME
 
#define ANJ_WITH_LWM2M_CBOR
 
#define ANJ_WITH_SENML_CBOR
 
#define ANJ_WITH_PLAINTEXT
 
#define ANJ_WITH_OPAQUE
 
#define ANJ_WITH_TLV
 
#define ANJ_COAP_WITH_UDP
 
#define ANJ_COAP_WITH_TCP
 
#define ANJ_COAP_MAX_OPTIONS_NUMBER   15
 
#define ANJ_COAP_MAX_ATTR_OPTION_SIZE   40
 
#define ANJ_COAP_MAX_LOCATION_PATHS_NUMBER   2
 
#define ANJ_COAP_MAX_LOCATION_PATH_SIZE   40
 
#define ANJ_WITH_CACHE
 
#define ANJ_CACHE_ENTRIES_NUMBER   10
 
#define ANJ_LOG_FULL
 
#define ANJ_LOG_ALT_IMPL_HEADER
 
#define ANJ_LOG_FORMATTER_PRINTF
 
#define ANJ_LOG_FORMATTER_BUF_SIZE   512
 
#define ANJ_LOG_HANDLER_OUTPUT_STDERR
 
#define ANJ_LOG_HANDLER_OUTPUT_ALT
 
#define ANJ_LOG_STRIP_CONSTANTS
 
#define ANJ_LOG_DEBUG_FORMAT_CONSTRAINTS_CHECK
 
#define ANJ_LOG_LEVEL_DEFAULT   L_INFO
 
#define ANJ_LOG_FILTERING_CONFIG_HEADER
 
#define ANJ_WITH_LWM2M12
 
#define ANJ_WITH_CUSTOM_CONVERSION_FUNCTIONS
 
#define ANJ_PLATFORM_BIG_ENDIAN
 
#define ANJ_WITH_MBEDTLS
 

Detailed Description

Anjay Lite library configuration.

The preferred way to compile Anjay Lite is to use CMake, in which case this file will be generated automatically by CMake.

However, to provide compatibility with various build systems used especially by embedded platforms, it is alternatively supported to compile Anjay by other means, in which case this file will need to be provided manually.

Macro Definition Documentation

◆ ANJ_CACHE_ENTRIES_NUMBER

#define ANJ_CACHE_ENTRIES_NUMBER   10

Configures the number of cached responses.

Default value: 10 It affects statically allocated RAM.

◆ ANJ_COAP_DOWNLOADER_MAX_MSG_SIZE

#define ANJ_COAP_DOWNLOADER_MAX_MSG_SIZE   1200

Configures the maximum size of a single request/response message in CoAP Downloader. This is the size of the whole message, including CoAP header and payload.

Default value: 1200 It affects statically allocated RAM.

◆ ANJ_COAP_DOWNLOADER_MAX_PATHS_NUMBER

#define ANJ_COAP_DOWNLOADER_MAX_PATHS_NUMBER   3

Configures the maximum number of paths that can be used in CoAP Download request.

Default value: 3 It affects statically allocated RAM.

◆ ANJ_COAP_MAX_ATTR_OPTION_SIZE

#define ANJ_COAP_MAX_ATTR_OPTION_SIZE   40

Configures the maximum length of a single Uri-Query CoAP Option related to Register, Request Bootstrap, Attribute setting with Write-Attributes or Observe operation. This option directly limits Client Endpoint name length.

Default value: 40 Calculated as "attr_name" + "=" + "attr_value", e.g.:

  • "gt=700.12" -> 9
  • "ep=anjay_lite_client" -> 20

◆ ANJ_COAP_MAX_LOCATION_PATH_SIZE

#define ANJ_COAP_MAX_LOCATION_PATH_SIZE   40

Configures the maximum size of each Location-Path option in the LwM2M Server's response to a Register message, in the CoAP header.

Default value: 40 It affects statically allocated RAM.

◆ ANJ_COAP_MAX_LOCATION_PATHS_NUMBER

#define ANJ_COAP_MAX_LOCATION_PATHS_NUMBER   2

Configures the number of Location-Path options that can be set in the LwM2M Server's response to a Register message, in the CoAP header. Register response will be rejected if Location-Paths count in it exeeds this value.

Default value: 2 It affects statically allocated RAM.

◆ ANJ_COAP_MAX_OPTIONS_NUMBER

#define ANJ_COAP_MAX_OPTIONS_NUMBER   15

Configures the maximum allowed number of Options present in CoAP header, in a single frame.

Default value: 15 If an incomming message has more options, Anjay Lite will not process it or respond to it.

◆ ANJ_COAP_WITH_TCP

#define ANJ_COAP_WITH_TCP

Enable communication with LwM2M Server using CoAP over TCP.

Requires ANJ_NET_WITH_TCP to be enabled.

◆ ANJ_COAP_WITH_UDP

#define ANJ_COAP_WITH_UDP

Enable communication with LwM2M Server using CoAP over UDP.

Requires ANJ_NET_WITH_UDP to be enabled.

◆ ANJ_DM_MAX_COMP_READ_ENTRIES

#define ANJ_DM_MAX_COMP_READ_ENTRIES   5

Configures the maximum number of entries (paths) in a composite read operation.

Default value: 5 This option is meaningful if ANJ_WITH_COMPOSITE_OPERATIONS is enabled.

◆ ANJ_DM_MAX_OBJECTS_NUMBER

#define ANJ_DM_MAX_OBJECTS_NUMBER   10

Configures the maximum number of LwM2M Objects that Anjay Lite Data Model can simultaneously hold.

Default value: 10 It affects statically allocated RAM.

◆ ANJ_FOTA_WITH_COAP

#define ANJ_FOTA_WITH_COAP

Enable FOTA with CoAP support.

◆ ANJ_FOTA_WITH_COAP_TCP

#define ANJ_FOTA_WITH_COAP_TCP

Enable FOTA with CoAP over TCP support.

◆ ANJ_FOTA_WITH_COAPS

#define ANJ_FOTA_WITH_COAPS

Enable FOTA with CoAPs (CoAP over DTLS) support.

◆ ANJ_FOTA_WITH_COAPS_TCP

#define ANJ_FOTA_WITH_COAPS_TCP

Enable FOTA with CoAP over TLS support.

◆ ANJ_FOTA_WITH_HTTP

#define ANJ_FOTA_WITH_HTTP

Enable FOTA with HTTP support.

◆ ANJ_FOTA_WITH_HTTPS

#define ANJ_FOTA_WITH_HTTPS

Enable FOTA with HTTPS support.

◆ ANJ_FOTA_WITH_PULL_METHOD

#define ANJ_FOTA_WITH_PULL_METHOD

Enable PULL method of Firmware dlivery in FOTA. Allows LwM2M Server to write an URI from which FW package can be downloaded to /5/0/1 Resource.

This method actually requires the application to implement a downloader and get the FW package with handlers provided in anj_dm_fw_update_handlers_t

◆ ANJ_FOTA_WITH_PUSH_METHOD

#define ANJ_FOTA_WITH_PUSH_METHOD

Enable PUSH method of Firmware dlivery in FOTA. Allows LwM2M Server to write FW package with a series of LwM2M Write operations to /5/0/0 Resource.

◆ ANJ_IN_MSG_BUFFER_SIZE

#define ANJ_IN_MSG_BUFFER_SIZE   1200

Configures the size of the buffer for handling incoming messages.

Default value: 1200 It affects statically allocated RAM.

◆ ANJ_LOG_ALT_IMPL_HEADER

#define ANJ_LOG_ALT_IMPL_HEADER

Enable logger in alternative mode. This should be defined to path to header file that specifes an alternative implementation of ANJ_LOG_HANDLER_IMPL_MACRO with arguments:

  • Module: module name, in the same form as in anj_log() calls (stringifiable identifier).
  • Level: identifier, one of: L_TRACE, L_DEBUG, L_INFO, L_WARNING, L_ERROR, L_MUTE. L_MUTE must not generate a message.
  • format string as in printf() function and arguments

This header file is included by by anj/log/log.h. This is useful to completely replace log calls with a custom definition, e.g. to emit log calls compatible with other logging libraries, such as the built-in system in Zephyr.

◆ ANJ_LOG_DEBUG_FORMAT_CONSTRAINTS_CHECK

#define ANJ_LOG_DEBUG_FORMAT_CONSTRAINTS_CHECK

If enabled, the logger will verify the format string upon call whether it only uses the format specifiers allowed, as defined in description for anj_log() macro. In case an unexpected format specifier is used, assertion is raised.

◆ ANJ_LOG_FILTERING_CONFIG_HEADER

#define ANJ_LOG_FILTERING_CONFIG_HEADER

Override log level for specific modules. This should be defined to path to header file with declarations in form: ANJ_LOG_LEVEL_FOR_MODULE_Module, where Module is the name of the module, in the same form as in anj_log() calls (stringifiable identifier).

// Enable trace logs for exchange module
#define ANJ_LOG_LEVEL_FOR_MODULE_exchange L_TRACE
// Disable logs for observe module
#define ANJ_LOG_LEVEL_FOR_MODULE_observe L_MUTED

◆ ANJ_LOG_FORMATTER_BUF_SIZE

#define ANJ_LOG_FORMATTER_BUF_SIZE   512

Size of the buffer used to format log messages. If the message is larger than the buffer, it will be truncated.

Caution: the buffer is allocated on stack when calling anj_log() macro.

NOTE: this option affects only the builds that use built-in log handler, i.e. ANJ_LOG_FULL .

◆ ANJ_LOG_FORMATTER_PRINTF

#define ANJ_LOG_FORMATTER_PRINTF

Use vsnprintf() to format log messages. This is the preferred option if the application already uses other functions from printf() family.

NOTE: this option affects only the builds that use built-in log handler, i.e. ANJ_LOG_FULL .

◆ ANJ_LOG_FULL

#define ANJ_LOG_FULL

Enable logger in full mode. The header for log messages contains:

  • module name
  • level of log message
  • name of source file the log is called from
  • line number of the log call

◆ ANJ_LOG_HANDLER_OUTPUT_ALT

#define ANJ_LOG_HANDLER_OUTPUT_ALT

Use alternative implementation of output function for log handler. End user must implement the anj_log_handler_output() function, declared in anj/compat/log_impl_decls.h.

◆ ANJ_LOG_HANDLER_OUTPUT_STDERR

#define ANJ_LOG_HANDLER_OUTPUT_STDERR

Output log messages on stderr.

NOTE: this option affects only the builds that use built-in log handler, i.e. ANJ_LOG_FULL .

◆ ANJ_LOG_LEVEL_DEFAULT

#define ANJ_LOG_LEVEL_DEFAULT   L_INFO

Default log level. Any log statements with a level lower than this will be excluded from the build.

NOTE: Defaults to L_INFO if not defined.

NOTE: Log level may be overridden for specific modules, see ANJ_LOG_FILTERING_CONFIG_HEADER .

◆ ANJ_LOG_STRIP_CONSTANTS

#define ANJ_LOG_STRIP_CONSTANTS

If enabled, ANJ_LOG_DISPOSABLE() will evaluate to " ".

◆ ANJ_LWM2M_SEND_QUEUE_SIZE

#define ANJ_LWM2M_SEND_QUEUE_SIZE   1

Configures the number of Send messages that can be queued simultaneously. They are never sent right away, so 1 is the minimum.

Default value: 1 It affects statically allocated RAM.

◆ ANJ_NET_WITH_IPV4

#define ANJ_NET_WITH_IPV4

Enable communication using IPv4 protocol.

Must be enabled, if anj_t.net_socket_cfg.raw_socket_config.af_setting forces IPv4 usage. This option is meaningful if underlaying, platform sockets implementation supports IPv4.

◆ ANJ_NET_WITH_IPV6

#define ANJ_NET_WITH_IPV6

Enable communication using IPv6 protocol.

Must be enabled, if anj_t.net_socket_cfg.raw_socket_config.af_setting forces IPv6 usage. This option is meaningful if underlaying, platform sockets implementation supports IPv6.

◆ ANJ_NET_WITH_TCP

#define ANJ_NET_WITH_TCP

Enable communication using TCP protocol.

This option is meaningful if underlaying, platform sockets implementation supports TCP.

◆ ANJ_NET_WITH_UDP

#define ANJ_NET_WITH_UDP

Enable communication using UDP protocol.

This option is meaningful if underlaying, platform sockets implementation supports UDP.

◆ ANJ_OBSERVE_MAX_OBSERVATIONS_NUMBER

#define ANJ_OBSERVE_MAX_OBSERVATIONS_NUMBER   10

Configure the number of Observations that can be set on Anjay Lite at the same time.

Default value: 10 It affects statically allocated RAM. If an incoming Observation can't be handled due to this limit, Anjay Lite will respond with message code 5.00 Internal Server Error.

◆ ANJ_OBSERVE_MAX_WRITE_ATTRIBUTES_NUMBER

#define ANJ_OBSERVE_MAX_WRITE_ATTRIBUTES_NUMBER   10

Configure the number of paths that have Observation-Class Attributes set with Write-Attributes operation at the same time. Attributes set with Observe operation (possible with LwM2M 1.2) are stored independently.

Default value: 10 It affects statically allocated RAM. If an incoming Write-Attributes can't be handled due to this limit, Anjay Lite will respond with message code 5.00 Internal Server Error.

◆ ANJ_OUT_MSG_BUFFER_SIZE

#define ANJ_OUT_MSG_BUFFER_SIZE   1200

Configures the size of the buffer for handling outgoing messages.

Default value: 1200 It affects statically allocated RAM.

◆ ANJ_OUT_PAYLOAD_BUFFER_SIZE

#define ANJ_OUT_PAYLOAD_BUFFER_SIZE   1024

Configures the size of the buffer for preparing outgoing messages payload. Must be lower than ANJ_OUT_MSG_BUFFER_SIZE to fit CoAP header in it as well.

Default value: 1024 It affects statically allocated RAM.

◆ ANJ_PLATFORM_BIG_ENDIAN

#define ANJ_PLATFORM_BIG_ENDIAN

Configures the numerical converters to treat the platform as big endian. Disabling this option will make Anjay Lite treat the platform as little endian.

◆ ANJ_SEC_OBJ_MAX_PUBLIC_KEY_OR_IDENTITY_SIZE

#define ANJ_SEC_OBJ_MAX_PUBLIC_KEY_OR_IDENTITY_SIZE   255

Configures the size of the buffer that holds Public Key or Identity (/0/x/3 Resource).

Default value: 255 It affects statically allocated RAM.

◆ ANJ_SEC_OBJ_MAX_SECRET_KEY_SIZE

#define ANJ_SEC_OBJ_MAX_SECRET_KEY_SIZE   255

Configures the size of the buffer that holds Secret Key (/0/x/5 Resource).

Default value: 255 It affects statically allocated RAM.

◆ ANJ_SEC_OBJ_MAX_SERVER_PUBLIC_KEY_SIZE

#define ANJ_SEC_OBJ_MAX_SERVER_PUBLIC_KEY_SIZE   255

Configures the size of the buffer that holds Server Public Key (/0/x/4 Resource).

Default value: 255 It affects statically allocated RAM.

◆ ANJ_WITH_BOOTSTRAP

#define ANJ_WITH_BOOTSTRAP

Enable Bootstrap Interface.

◆ ANJ_WITH_BOOTSTRAP_DISCOVER

#define ANJ_WITH_BOOTSTRAP_DISCOVER

Enable Bootstrap-Discover operation support in Bootstrap Interface.

◆ ANJ_WITH_CACHE

#define ANJ_WITH_CACHE

Enables respones caching mechanism. When eneabled, Anjay Lite caches responses to ensure that duplicate messages (e.g. due to retransmissions or retries) are processed exactly once. This guarantees idempotent behavior for operations with side effects.

It affects statically allocated RAM.

◆ ANJ_WITH_CBOR

#define ANJ_WITH_CBOR

Enable CBOR Content Format (application/cbor, numerical-value 60) encoder and decoder.

◆ ANJ_WITH_CBOR_DECODE_DECIMAL_FRACTIONS

#define ANJ_WITH_CBOR_DECODE_DECIMAL_FRACTIONS

Enable support for decoding CBOR Tag 4 - Decimal Fractions.

◆ ANJ_WITH_CBOR_DECODE_HALF_FLOAT

#define ANJ_WITH_CBOR_DECODE_HALF_FLOAT

Enable support for decoding 16-bit IEEE 754 half-precision format ("half floats") in CBOR.

◆ ANJ_WITH_CBOR_DECODE_INDEFINITE_BYTES

#define ANJ_WITH_CBOR_DECODE_INDEFINITE_BYTES

Enable support for decoding CBOR indefinite-length byte strings and arrays.

◆ ANJ_WITH_CBOR_DECODE_STRING_TIME

#define ANJ_WITH_CBOR_DECODE_STRING_TIME

Enable support for docoding CBOR time values represented as text strings.

◆ ANJ_WITH_COAP_DOWNLOADER

#define ANJ_WITH_COAP_DOWNLOADER

Enable CoAP Downloader Interface.

This interface allows to download resources using CoAP protocol. It is used along with FOTA Object, but can also be used independently.

◆ ANJ_WITH_COMPOSITE_OPERATIONS

#define ANJ_WITH_COMPOSITE_OPERATIONS

Enable Composite Operations support (Read-Composite, Write-Composite)

If not active, Anjay will respond with message code 5.01 Not Implemented to any composite type request. To enable Observe-Composite as well, see ANJ_WITH_COMPOSITE_OPERATIONS .

◆ ANJ_WITH_CUSTOM_CONVERSION_FUNCTIONS

#define ANJ_WITH_CUSTOM_CONVERSION_FUNCTIONS

Enables custom convertion functions implementation that do not require sprintf() and sscanf() in Anjay Lite for string<->number convertions.

Useful on constrained platforms which do not use these functions.

◆ ANJ_WITH_DEFAULT_DEVICE_OBJ

#define ANJ_WITH_DEFAULT_DEVICE_OBJ

Enable default, built-in implementation of /3 Device Object.

If this flag is disabled, the user should provide an alternative, custom implementation. It's mandated by the LwM2M Specification, but not necassary to connect to a LwM2M Server.

◆ ANJ_WITH_DEFAULT_FOTA_OBJ

#define ANJ_WITH_DEFAULT_FOTA_OBJ

Enable default, built-in implementation of /5 Firmware Update Object.

◆ ANJ_WITH_DEFAULT_SECURITY_OBJ

#define ANJ_WITH_DEFAULT_SECURITY_OBJ

Enable default, built-in implementation of /0 Security Object.

If this flag is disabled, the user must provide an alternative, custom implementation.

◆ ANJ_WITH_DEFAULT_SERVER_OBJ

#define ANJ_WITH_DEFAULT_SERVER_OBJ

Enable default, built-in implementation of /1 Server Object.

If this flag is disabled, the user must provide an alternative, custom implementation.

◆ ANJ_WITH_DISCOVER

#define ANJ_WITH_DISCOVER

Enable Discover operation support in Device Management and Service Enablement Interface.

◆ ANJ_WITH_DISCOVER_ATTR

#define ANJ_WITH_DISCOVER_ATTR

Enable reporting Observation-Class Attributes in response to Discover operation.

Requires ANJ_WITH_DISCOVER and ANJ_WITH_OBSERVE to be enabled.

◆ ANJ_WITH_EXTERNAL_DATA

#define ANJ_WITH_EXTERNAL_DATA

Enable support for external data types: ANJ_DATA_TYPE_EXTERNAL_BYTES and ANJ_DATA_TYPE_EXTERNAL_STRING. This allows to use external data sources (e.g. files) as a source of data for the output payload.

◆ ANJ_WITH_LWM2M12

#define ANJ_WITH_LWM2M12

Enable features introduced in LwM2M protocol version 1.2.

◆ ANJ_WITH_LWM2M_CBOR

#define ANJ_WITH_LWM2M_CBOR

Enable LwM2M CBOR Content Format (application/vnd.oma.lwm2m+cbor, numerical-value 11544) encoder and decoder.

Requires ANJ_WITH_LWM2M12 to be enabled. At least one of ANJ_WITH_SENML_CBOR or ANJ_WITH_LWM2M_CBOR must enabled for payload encoding, because other content formats can't encode multiple records in one message.

◆ ANJ_WITH_LWM2M_SEND

#define ANJ_WITH_LWM2M_SEND

Enable LwM2M Send operation in Information Reporting Interface.

◆ ANJ_WITH_MBEDTLS

#define ANJ_WITH_MBEDTLS

Enable support for MbedTLS library.

◆ ANJ_WITH_OBSERVE

#define ANJ_WITH_OBSERVE

Enable Observe, Notify, Cancel Observation and Write-Attributes operations in Information Reporting Interface.

◆ ANJ_WITH_OBSERVE_COMPOSITE

#define ANJ_WITH_OBSERVE_COMPOSITE

Enable Observe-Composite and Cancel Observation-composite operations in Information Reporting Interface.

Requires ANJ_WITH_OBSERVE to be enabled. Requires ANJ_WITH_COMPOSITE_OPERATIONS to enabled.

◆ ANJ_WITH_OPAQUE

#define ANJ_WITH_OPAQUE

Enable Opaque Content Format (application/octet-stream , numerical-value 42) encoder and decoder.

◆ ANJ_WITH_PLAINTEXT

#define ANJ_WITH_PLAINTEXT

Enable Plaintext Content Format (text/plain , numerical-value 0) encoder and decoder.

◆ ANJ_WITH_SENML_CBOR

#define ANJ_WITH_SENML_CBOR

Enable SenML CBOR Content Format (application/senml+cbor, numerical-value 112) and SenML-ETCH CBOR (application/senml-etch+cbor, numerical-value 322) encoder and decoder.

At least one of ANJ_WITH_SENML_CBOR or ANJ_WITH_LWM2M_CBOR must enabled for payload encoding, because other content formats can't encode multiple records in one message.

◆ ANJ_WITH_SOCKET_POSIX_COMPAT

#define ANJ_WITH_SOCKET_POSIX_COMPAT

Enable implementation of Anjay Lite socket API for POSIX-compilant plafroms.

If disabled, user must provide the compatibility layer.

◆ ANJ_WITH_TIME_POSIX_COMPAT

#define ANJ_WITH_TIME_POSIX_COMPAT

Enable implementation of Anjay Lite time API for POSIX-compilant platforms.

If disabled, user must provide the compatibility layer.

◆ ANJ_WITH_TLV

#define ANJ_WITH_TLV

Enable TLV Content Format (application/vnd.oma.lwm2m+tlv, numerical-value 11542) decoder.

NOTE: encoder is not implemented.