libcoap
« Back to VersTracker
Description:
Lightweight application-protocol for resource-constrained devices
Type: Formula  |  Latest Version: 4.3.5a@0  |  Tracked Since: Nov 27, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: coap iot rfc-7252 m2m embedded networking
Install: brew install libcoap
About:
libcoap is a high-performance C implementation of the Constrained Application Protocol (RFC 7252). It enables reliable and UDP-based communication for IoT devices, acting as both client and server. The library is highly configurable to fit into resource-constrained environments like microcontrollers.
Key Features:
  • Full RFC 7252 implementation (CoAP over UDP)
  • Support for CoAP over TCP (RFC 8323)
  • Resource directory and block-wise transfer support
  • DTLS security layer integration (via TinyDTLS or OpenSSL)
  • Asynchronous I/O for high concurrency
Use Cases:
  • Building lightweight servers for embedded sensors and actuators
  • Developing IoT clients for device management and data telemetry
  • Implementing M2M (Machine-to-Machine) communication in constrained networks
Alternatives:
  • californium – Java-based CoAP implementation; heavier resource footprint but easier integration in Java ecosystems.
  • aiocoap – Python-based asynchronous implementation; ideal for rapid prototyping but lacks C's raw performance for embedded use.
Version History
Detected Version Rev Change Commit
Nov 27, 2025 11:04am 4.3.5a 0 VERSION_BUMP bb98efe5
Sep 13, 2025 10:51am 0 VERSION_BUMP 8141c410
Nov 25, 2024 11:55pm 0 VERSION_BUMP 1468a05b
Sep 13, 2024 5:48pm 0 VERSION_BUMP 967cef74
Sep 13, 2024 2:26pm 0 VERSION_BUMP efbf183a