CoapPacket

- Added last few stubs for option length decoding
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-29 09:13:05 +02:00
parent ca89119c13
commit 1500e44153
1 changed files with 10 additions and 0 deletions

View File

@ -539,6 +539,16 @@ public class CoapPacket
writeln("Built option: ", option);
createdOptions ~= option;
}
// Option length extended (8bit) (13)
else if(optLenType == OptionLenType._8BIT_EXTENDED)
{
// TODO: THIS IS UNTESTED CODE!!!!
}
// Option length extended (16bit) (14)
else if(optLenType == OptionLenType._12_BIT_EXTENDED)
{
// TODO: THIS IS UNTESTED CODE!!!!
}
else
{
writeln("OptionDelta14 Mode: We don't yet support other option lengths in this mode");