PelionIoT / mbed-coap

CoAP C library - Builder and Parser for CoAP messages
Apache License 2.0
29 stars 16 forks source link

Clear token if received blockwise message doesn't have one #114

Closed esajaa closed 4 years ago

esajaa commented 4 years ago

[x] I confirm this contribution is my own and I agree to license it with Apache 2.0. [x] I confirm the moderators may change the PR before merging it in.

Summary of changes

Clear token if received message doesn't have one. This fix prevents situation where the response is sending token even when it's not required anymore.

teetak01 commented 4 years ago

What about if the server is adding a token for the block2 GET?

Will we use the new token then, or will we still use the original token from subscription GET?