You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
According to the draft-coap-7 the optional length is split in length lower then
15 or hight for the next length field.
so,
length < 15 then the long length is 0,
but when the length > 15 then the over flowing length is placed into the long
length value - 15.
example:
total length = 17.
results into short length = 15, long length = 2
in the current implementation of jcoap this substraction isn't done.
bugfix can be done in the file CoapHeaderOptions function deserialize, line 78
tmpLength = tmp.getLongLength() + 15;
end for serialization :
CoapHeaderOption
line 37, longLength = value.length-15;
regards,
Original issue reported on code.google.com by [email protected] on 7 Oct 2011 at 11:21
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 7 Oct 2011 at 11:21The text was updated successfully, but these errors were encountered: