Define WITH_AVS_COAP_OBSERVE_FORCE_CANCEL_ON_UNACKED_ERROR

Define Documentation

WITH_AVS_COAP_OBSERVE_FORCE_CANCEL_ON_UNACKED_ERROR

Force cancelling observation, even if a confirmable notification yielding an error response is not acknowledged or rejected with RST by the observer.

This is a circumvention for some non-compliant servers that respond with an RST message to a confirmable notification yielding an error response. This setting makes the library cancel the observation in such cases, even though the notification is formally rejected. Additionally, it will also make the library cancel the observation if no response is received at all.