Skip to content

obgm/libcoap-minimal

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Minimal CoAP Client and Server Examples for libcoap

These examples require libcoap-3 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-2023 Olaf Bergmann bergmann@tzi.org

License

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

About

A minimal client and server example for libcoap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published