mirror of https://github.com/deavmi/doap
parent
deaed433a7
commit
edf989d698
|
@ -345,6 +345,15 @@ public class CoapPacket
|
|||
return this.mid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes the given bytes into a `CoapPacket`
|
||||
*
|
||||
* Params:
|
||||
* data = the bytes to decode
|
||||
* Returns: a decoded `CoapPacket`
|
||||
* Throws:
|
||||
* CoapException on error decoding
|
||||
*/
|
||||
public static CoapPacket fromBytes(ubyte[] data)
|
||||
{
|
||||
CoapPacket packet = new CoapPacket();
|
||||
|
|
Loading…
Reference in New Issue