最近在研究CoAP,打算使用libcoap体验一下CoAP,在网上找了些资料,整理如下。
1. 什么是libcoap?
libcoap: C-Implementation of CoAP
libcoap implements a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwith, or network packet sizes. This protocol, CoAP was standardized in the IETF as RFC 7252.
2. 如何获取libcoap?
sudo apt-get install autoconf automake libtool
git clone https://github.com/obgm/libcoap.git
cd libcoap
./autogen.sh
./configure –enable-documentation=no
make
sudo make install
简单说一下上面的指令(我是使用的平台是Raspberry Pi 3):
1. 需要安装autoconf automake libtool这几个工具,不然会提醒缺少工具。
2. clone source code到本地。
3. 执行一下aut

本文介绍了libcoap,一个C语言实现的CoAP协议库,适用于资源受限的设备。详细阐述了在Raspberry Pi 3上获取并安装libcoap的步骤,包括使用apt-get安装依赖、从GitHub克隆源码、执行autogen.sh和configure脚本以及make和make install。同时,给出了启动coap-server和coap-client进行简单测试的方法。
最低0.47元/天 解锁文章
7845

被折叠的 条评论
为什么被折叠?



