Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

coap-codec

coap编解码器 Maven Central

//encode
CoapPacket coapPacket = new CoapPacket();
coapPacket.setCode(Code.C205_CONTENT);
coapPacket.setPayload("{}");
coapPacket.headers().setContentFormat(MediaTypes.CT_TEXT_PLAIN);

coapPacket.writeTo(outputStream);


//decode
 CoapPacket packet = CoapPacket.deserialize(inputStream);
 
 packet.headers();
 
 packet.getPayloadString();

About

coap编解码器

Topics

Resources

Stars

12 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages