libcoap

Lightweight CoAP protocol implementation for IoT devices

brewmacoslinux
Try with needOr install directly
Source

About

Lightweight application-protocol for resource-constrained devices

Commands

coap-clientcoap-server

Examples

Query a CoAP resource from a server$ coap-client -m get coap://example.com/resource
Send data to a CoAP endpoint$ coap-client -m post -e 'sensor_data' coap://example.com/data
Start a simple CoAP server listening on default port$ coap-server