CoapPacket

- Added some more stubs
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-29 09:05:16 +02:00
parent 63b1313dbc
commit 16261dff24
1 changed files with 21 additions and 0 deletions

View File

@ -405,6 +405,27 @@ public class CoapPacket
writeln("8 bit option-id delta: ", optionId);
// Get the type of option length
OptionLenType optLenType = getOptionLenType(curValue);
writeln("Option length type: ", optLenType);
// Simple case (12)
if(optLenType == OptionLenType.ZERO_TO_TWELVE)
{
// TODO: Implement me
assert(false);
}
// Option length extended (8bit) (13)
else if(optLenType == OptionLenType._8BIT_EXTENDED)
{
// TODO: Implement me
assert(false);
}
// Option length extended (16bit) (14)
else if(optLenType == OptionLenType._12_BIT_EXTENDED)
{
assert(false);
}