Registry / networking / libcoap

libcoap

JSON →
library4.3.5vcpkgunverified

A C implementation of the Constrained Application Protocol (RFC 7252).

vcpkg install libcoap
INSTALL
IMPORT
SIG · LIBCOAP
L
libcoap
networkingcppv4.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

coap3/coap.h
#include <coap3/coap.h>

Create and free a CoAP context

#include <coap3/coap.h> #include <iostream> int main() { coap_context_t* ctx = coap_new_context(nullptr); if (ctx) { std::cout << "CoAP context created\n"; coap_free_context(ctx); } return 0; }
Debug
Known issues
gotchalibcoap v4.x uses coap3/ include path despite version number
fix
Always include <coap3/coap.h> for libcoap >= 4.0
affects: >=4.0.0
Upgrade
Version history
4.3.5latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources

No resource links recorded.

libcoap — pip install libcoap · libregistry