Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1248/microcoap
A small CoAP implementation for microcontrollers
https://github.com/1248/microcoap
Last synced: 29 days ago
JSON representation
A small CoAP implementation for microcontrollers
- Host: GitHub
- URL: https://github.com/1248/microcoap
- Owner: 1248
- License: mit
- Created: 2013-09-11T11:34:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T15:16:36.000Z (over 6 years ago)
- Last Synced: 2024-04-14T15:12:22.297Z (8 months ago)
- Language: C
- Size: 351 KB
- Stars: 331
- Watchers: 57
- Forks: 122
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- Awesome-arduino - microcoap - A small CoAP implementation for microcontrollers (Libraries)
- awesome-embedded-systems - microcoap - A small CoAP implementation for microcontrollers (Packages, Libraries and RTOSes / CoAP)
- awesome-arduino - microcoap - A small CoAP implementation for microcontrollers (Libraries)
- awesome-CoAP - microcoap - A small CoAP implementation for microcontrollers. (Libraries / MicroPython)
README
microcoap
=========A tiny CoAP server for microcontrollers.
See http://tools.ietf.org/html/rfc7252Endpoint handlers are defined in endpoints.c
* Arduino demo (Mega + Ethernet shield, LED + 220R on pin 6, PUT "0" or "1" to /light)
* POSIX (OS X/Linux) demo
* GET/PUT/POST
* No retries
* Piggybacked ACK onlyFor linux/OSX
make
./coapFor Arduino
open microcoap.ino
To test, use libcoap
./coap-client -v 100 -m get coap://127.0.0.1/.well-known/core
./coap-client -v 100 -m get coap://127.0.0.1/light
./coap-client -e "1" -m put coap://127.0.0.1/light
./coap-client -e "0" -m put coap://127.0.0.1/lightOr use copper (Firefox plugin)
coap://127.0.0.1
Arduino problem
===============Arduino, by default, has a UDP transmit buffer of 24 bytes. This is too small
for some endpoints and will result in an error.