安装
shell
apt install -y libcoap2-bin
服务端
shell
coap-server -v 9
客户端
shell
coap-client coap://localhost/time -m get
测试结果
