zephyr/subsys/net/lib/zoap
Michael Scott 911efb0e72 net: zoap: use message id for reply matching
In the 08 Feb 2017 V1.0 LwM2M specification page 80 mentions: in
response to a "Notify" operation for which it is not interested in
any more, the LwM2M Server can send a "Reset Message".

Leshan server sends this CoAP RST response and it does not contain
the originating message token (which is also how the packet flow looks
on page 81 of the LwM2M spec).  Using the current ZoAP sources, the
client has no way of matching back to observation which needs to be
cancelled.

Let's add a match for message ID of a reply where there is no token
to handle this case.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
[ricardo.salveti@linaro.org: Handle both piggybackend and separate
response (id doesn't need to match, only token).]
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
2017-08-09 10:55:53 +03:00
..
Kbuild
Kconfig tests: net: zoap: Add path uri matching tests 2017-05-25 18:49:56 +03:00
Makefile
zoap.c net: zoap: use message id for reply matching 2017-08-09 10:55:53 +03:00
zoap_link_format.c net: zoap: Remove extra null checks 2017-05-25 18:50:40 +03:00