mirror of
https://github.com/deavmi/doap
synced 2024-07-04 16:10:15 +02:00
CoapPacket
- Added note about options encoding is missing - Added payload marker encoding - Added payload encoding
This commit is contained in:
parent
8c30637c1f
commit
3f23b4b2c8
|
@ -60,6 +60,14 @@ public class CoapPacket
|
||||||
{
|
{
|
||||||
encoded ~= token;
|
encoded ~= token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Add options encoding
|
||||||
|
|
||||||
|
// Set the payload marker
|
||||||
|
encoded ~= cast(ubyte)-1;
|
||||||
|
|
||||||
|
// Set the payload
|
||||||
|
encoded ~= payload;
|
||||||
|
|
||||||
return encoded;
|
return encoded;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user