{"id":15063465,"url":"https://github.com/jetlinks/coap-codec","last_synced_at":"2025-04-10T11:09:37.833Z","repository":{"id":52789740,"uuid":"175571077","full_name":"jetlinks/coap-codec","owner":"jetlinks","description":"coap编解码器","archived":false,"fork":false,"pushed_at":"2024-10-18T01:42:45.000Z","size":40,"stargazers_count":11,"open_issues_count":0,"forks_count":29,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-24T09:52:55.512Z","etag":null,"topics":["coap","coap-codec","iot","mqtt","udp"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jetlinks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-14T07:34:50.000Z","updated_at":"2024-10-18T01:42:42.000Z","dependencies_parsed_at":"2025-02-17T02:44:01.715Z","dependency_job_id":null,"html_url":"https://github.com/jetlinks/coap-codec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetlinks%2Fcoap-codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetlinks%2Fcoap-codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetlinks%2Fcoap-codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetlinks%2Fcoap-codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetlinks","download_url":"https://codeload.github.com/jetlinks/coap-codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208555,"owners_count":21065202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coap","coap-codec","iot","mqtt","udp"],"created_at":"2024-09-24T23:57:49.076Z","updated_at":"2025-04-10T11:09:37.817Z","avatar_url":"https://github.com/jetlinks.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coap-codec\ncoap编解码器\n[![Maven Central](https://img.shields.io/maven-central/v/org.jetlinks/coap-codec.svg)](http://search.maven.org/#search%7Cga%7C1%7Ccoap-codec)\n\n```java\n//encode\nCoapPacket coapPacket = new CoapPacket();\ncoapPacket.setCode(Code.C205_CONTENT);\ncoapPacket.setPayload(\"{}\");\ncoapPacket.headers().setContentFormat(MediaTypes.CT_TEXT_PLAIN);\n\ncoapPacket.writeTo(outputStream);\n\n\n//decode\n CoapPacket packet = CoapPacket.deserialize(inputStream);\n \n packet.headers();\n \n packet.getPayloadString();\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetlinks%2Fcoap-codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetlinks%2Fcoap-codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetlinks%2Fcoap-codec/lists"}