{"id":25830892,"url":"https://github.com/lab5e/libcoap-dtls-sample","last_synced_at":"2026-04-28T09:36:22.411Z","repository":{"id":97096125,"uuid":"475400305","full_name":"lab5e/libcoap-dtls-sample","owner":"lab5e","description":"CoAP over DTLS with libcoap","archived":false,"fork":false,"pushed_at":"2022-04-25T12:13:30.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T22:38:57.783Z","etag":null,"topics":["coap","cpp","dtls","firmware","iot","lang-c","libcoap","sample","span"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lab5e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-29T10:55:54.000Z","updated_at":"2024-03-14T10:39:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5525255-49df-46be-b87b-e48df1974462","html_url":"https://github.com/lab5e/libcoap-dtls-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lab5e/libcoap-dtls-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Flibcoap-dtls-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Flibcoap-dtls-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Flibcoap-dtls-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Flibcoap-dtls-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab5e","download_url":"https://codeload.github.com/lab5e/libcoap-dtls-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab5e%2Flibcoap-dtls-sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262699186,"owners_count":23350254,"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","cpp","dtls","firmware","iot","lang-c","libcoap","sample","span"],"created_at":"2025-02-28T19:34:34.591Z","updated_at":"2026-04-28T09:36:17.391Z","avatar_url":"https://github.com/lab5e.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Libcoap sample client\n\nThis is a CoAP client sample for Raspberry Pi/Linux with the [libcoap](https://libcoap.net) library. This \nsample uses the built-in transport layer included with the library.\n\nThis example builds on Linux/Raspberry Pi but should be relatively simple to port to other frameworks that\nis built on top of the libcoap library such as ESP-IDF for the ESP32. \n\n## Client certificate and private key\n\nThe sample code reads the certificate and private key from the files `cert.crt` and `key.pem`. Both files \nmust be PEM-encoded. The `cert.crt` contains the client certificate, intermediates and root and the `key.pem` \nfile contains the private key.\n\nUse the [span CLI](https://github.com/lab5e/spancli) to generate a certificate and key file.\n\n## Building\n\nInstall libcoap headers:\n\n`sudo dnf install libcoap-devel`\n\nBuild with `make`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Flibcoap-dtls-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab5e%2Flibcoap-dtls-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab5e%2Flibcoap-dtls-sample/lists"}