Skip to content
Commit d2e98c86 authored by Robert Chou's avatar Robert Chou Committed by Jukka Rissanen
Browse files

net: samples: fix malformed payload when coap_client/server retransmit



Original coap_client implementation does not setup "appdatalen" of
net_pkt correctly and does not strip the IP + UDP headers when doing
the retransmit. This will result in malformed coap packet. Fix it by
adding a strip_headers() function to set appdatalen and get rid of
IP + UDP headers.

Signed-off-by: default avatarRobert Chou <robert.ch.chou@acer.com>
parent de6fafb7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment