Skip to content
A minimal client and server example for libcoap
Branch: master
Clone or download
obgm client.cc: fix coap_show_pdu() invocation
coap_show_pdu() now takes the log level as additional argument.
Latest commit 141a505 Jul 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE Initial commit Jun 5, 2018
Makefile
README.md updated README.md Jun 5, 2018
client.cc
common.cc
common.hh
server.cc

README.md

Minimal CoAP Client and Server Examples for libcoap

These examples require libcoap-2 to work.

client.cc shows a minimal libcoap client that sends a confirmable UDP GET /hello request to a pre-defined CoAP server (coap.me in this example) and outputs a received response.

server.cc is a minimal CoAP UDP server that binds on localhost:5683. It has a single resource /hello.

Copyright (C) 2018 Olaf Bergmann bergmann@tzi.org

License

This work has been licensed under MIT. See file LICENSE for details.

You can’t perform that action at this time.