mirror of
https://github.com/deavmi/doap
synced 2024-07-02 13:27:17 +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;
|
||||
}
|
||||
|
||||
// FIXME: Add options encoding
|
||||
|
||||
// Set the payload marker
|
||||
encoded ~= cast(ubyte)-1;
|
||||
|
||||
// Set the payload
|
||||
encoded ~= payload;
|
||||
|
||||
return encoded;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user