Skip to content
A small CoAP implementation for microcontrollers
Branch: master
Clone or download
Pull request Compare This branch is 58 commits ahead of 1248:master.
Latest commit d32b128 Nov 25, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example fixed error handling in example and tests Aug 30, 2016
tests
.gitignore
Doxyfile
LICENSE
LICENSE.microcoap
Makefile
Makefile.org new Makefiles, add test for piggyback and separate ACK handling Aug 17, 2016
README.md rebranding to YaCoAP Aug 30, 2016
coap.c
coap.h removed unused method Aug 31, 2016
coap_dump.c
coap_dump.h
coap_parse.c refined internal state handling Aug 29, 2016

README.md

YaCoAP - Yet another CoAP library

example

tests

Build all tests by simply running make within subdirectory /tests. This will create the following test applications, + use Firefox+Copper.

piggyback

This tests is a CoAP server application which provides distinct resources:

  • /.well-known/core: as per standard you receive resources in link-format
  • /piggyback: the response is combined with the ACK
  • /separate: if request is CON it sends separate acknowledgement and response messages, if request is NONCON you get a response message only (no ACK)

request_get

This test application sends a GET request to a chosen server, it retrieves and prints /.well-known/core.

./request_get host|ip

request_put

This test application sends a PUT request to a chosen server for any path with any content.

./request_put host|ip "path" "content"
You can’t perform that action at this time.