mirror of
https://github.com/deavmi/doap
synced 2024-07-04 15:30:09 +02:00
CoapPacket
- Removed debug prints
This commit is contained in:
parent
69a0fa12c5
commit
025758aa66
|
@ -142,15 +142,12 @@ public class CoapPacket
|
|||
return this.tokenLen;
|
||||
}
|
||||
|
||||
import std.stdio;
|
||||
|
||||
public static CoapPacket fromBytes(ubyte[] data)
|
||||
{
|
||||
CoapPacket packet = new CoapPacket();
|
||||
|
||||
packet.ver = data[0]>>6;
|
||||
packet.type = cast(MessageType)( (data[0]>>4) & 3);
|
||||
writeln(packet.type);
|
||||
packet.tokenLen = data[0]&15;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user