coap
libcoap C library wrapped in Nim with full async integration
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:23 |
Tags
Installation
nimble install coap
choosenim install coap
git clone https://github.com/PMunch/libcoap
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| coap | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/PMunch/libcoap |
|---|---|
| Homepage | https://github.com/PMunch/libcoap |
| Registry Source | nimble_official |
README
libCoAP in Nim
This is a libcoap wrapper for Nim. It uses Futhark to automatically wrap libcoap 4.3.0, and then builds a nice Nim interface for it. This means that you don't need to manually manage memory or deal with C library callbacks. Simply send a message and await the reply with normal async primitives. For a usage example see my IKEA Home Smart library which this library was built for.