【问题标题】:How to add a Resource or Endpoint in a CoAP server program Golang如何在 CoAP 服务器程序 Golang 中添加资源或端点
【发布时间】:2024-04-28 17:00:02
【问题描述】:

https://github.com/dustin/go-coap

我正在使用上述库在 Golang 中构建服务器-客户端程序。 我们如何在服务器端添加资源或端点并编写特定于该端点的处理程序。

以及如何从客户端将数据发布到特定的资源或端点。

谁能给出使用上述库的例子。 提前致谢!

【问题讨论】:

    标签: go client-server coap


    【解决方案1】:

    clientserver的示例代码在./example/下

    【讨论】:

    • 我期待一个使用端点的服务器客户端示例。
    最近更新 更多