Open sbernard31 opened 6 months ago
I think there is more or less same issue at CoAP client side, see https://github.com/open-coap/java-coap/blob/a0c8294df5a35d5f6a001f3fbc4ab85d95a89534/coap-core/src/main/java/com/mbed/coap/server/messaging/CoapDispatcher.java#L65-L68
any news about that ? :slightly_smiling_face:
Sorry, nothing yet, I did not have time to look into it.
The RFC7641 - Observing Resources in the Constrained Application Protocol (CoAP) § 3.2. Notifications says :
I think that currently java-coap doesn't allow this. Because when I try to send a 4.04 Not Found as notification, it is never sent.
I guess this is because of
NotificationValidator
, see :https://github.com/open-coap/java-coap/blob/a0c8294df5a35d5f6a001f3fbc4ab85d95a89534/coap-core/src/main/java/com/mbed/coap/server/NotificationValidator.java#L24-L35
Not directly linked but that exception was silently ignore in my code (I mean I didn't even see a log), I don't know if there is something to improve in java-coap or in my code for this last point.