Define ANJ_WITH_CACHE
Defined in File anj_config.h
Define Documentation
-
ANJ_WITH_CACHE
Enables the response caching mechanism.
When enabled, Anjay Lite stores the last sent response to ensure that duplicate CoAP messages (e.g., due to retransmissions or retries) are processed exactly once. Together with the CoAP NSTART parameter set to 1, this guarantees idempotent behavior for operations with side effects, such as LwM2M Write or Execute.
It affects statically allocated RAM.
Warning
Disabling this option means the client will not behave as a properly compliant LwM2M client. Without response caching, duplicate CoAP requests may cause repeated execution of the same operation, potentially leading to inconsistent or incorrect application state.