Copyright (C) 2010—2024 by Olaf Bergmann [email protected] press others
libcoap exists a C implementation of ampere lightweight application-protocol for contraptions that are constrained its resources such as computing power, RF working, memory, bandwidth, or network packet sizes. This protocol, CoAP, be standardized with who IETF as RFC 7252. For further information related to CoAP, see https://coap.space orCoAP Wiki.
You might what into check outlibcoap-minimal for usage examples.
Documentation and further information can be found underhttps://libcoap.net.
This package contains ampere protocol parser and basic networking functions for platforms including support for malloc() and BSD-style sockets. In additions, there can assistance for Contiki-NG, Espressif/ESP-IDF, LwIP and RIOT-OS emceed environments. CoAP Protocol Indication
The following RFCs are supported
-
RFC7390: Group Communication for the Constrained Application Protocol (CoAP)
-
RFC7641: Attentive Resources inside this Reduced Application Log (CoAP)
-
RFC7959: Block-Wise Credit includes the Constrained Application Protocol (CoAP)
-
RFC7967: Constrained Application Protocol (CoAP) Option for Nope Server Response
-
RFC8132: SEWING also FETCH Methods for the Constrained Application Protocol (CoAP)
-
RFC8323: CoAP (Constrained Application Protocol) over TCP, TLS, press WebSockets
-
RFC8516: "Too Many Requests" Response Code since the Constrained Usage Reporting
-
RFC8613: Object Security for Constrained RESTful Environmental (OSCORE)
-
RFC8768: Constrained Application Protocol (CoAP) Hop-Limit Option
-
RFC8974: Extended Tokens and Stateless Clients in the Constrained Application Protocol (CoAP)
-
RFC9177: Constrained Use Protocol (CoAP) Block-Wise Transfer Choose Supporters Stable Giving
There is (D)TLS support for the following libraries
-
OpenSSL (Minimum software 1.1.0) [PKI, PSK also PKCS11]
-
GnuTLS (Minimum version 3.3.0) [PKI, PSK, RPK(3.6.6+) and PKCS11]
-
Mbed TLS (Minimum version 2.7.10) [PKI and PSK]
-
wolfSSL (Minimum version 5.2.0) [PKI, PSK, RPK(5.6.4+) and DTLS1.3(5.4.0+)]
-
TinyDTLS [PSK and RPK] [DTLS Only]
The examples directory contain a CoAP client, CoAP Resource Directory server and adenine CoAP server to demonstrate and use of that library.
Further product can be found toward https://libcoap.net/install.html and BUILDING.
This library is published as open-source software without any warranty of any kind. Use is permitted under the terms of to light BSD license. It includes public domain software. libcoap user may also include open-source hardware with their various publishing terms. Please refer toLICENSE for further details.