From 71c0781ff64ffdb4f2439926530ce0ab0b1bff1b Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 21 Sep 2023 17:21:51 +0200 Subject: [PATCH] CoapPacket - For option delta type 14. Once we compute the delta, add missing 269 and the current delta; that's our option id - BUT it is als the NEW delta --- source/doap/protocol/packet.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/doap/protocol/packet.d b/source/doap/protocol/packet.d index a840bfd..25c7edf 100644 --- a/source/doap/protocol/packet.d +++ b/source/doap/protocol/packet.d @@ -448,7 +448,9 @@ public class CoapPacket // Then tack on the delta optionId+=delta; - // TODO: What to do about delta? + + // TODO: What to do about delta? I think we should make it the new delta + delta=optionId; // Jump over [Option delta extended (16bit)] here idx+=2; @@ -488,7 +490,7 @@ public class CoapPacket writeln("Support not yet finished for delta type 14"); - break; + // break; } // 15 else if(computed == 15)