microcoap

A small CoAP implementation for microcontrollers

  • 所有者: 1248/microcoap
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

microcoap

A tiny CoAP server for microcontrollers.
See http://tools.ietf.org/html/rfc7252

Endpoint 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 only

For linux/OSX

make
./coap

For 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/light

Or 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.

主要指標

概覽
名稱與所有者1248/microcoap
主編程語言C
編程語言C (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2013-09-11 11:34:47
推送於2018-05-14 15:16:36
最后一次提交2016-02-05 09:47:25
發布數0
用户参与
星數344
關注者數56
派生數121
提交數57
已啟用問題?
問題數21
打開的問題數17
拉請求數17
打開的拉請求數6
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?