【发布时间】:2018-11-05 14:07:12
【问题描述】:
我正在尝试使用 coap 运行应用程序,但我是新手。我正在使用 python coapthon3 库。但我想使用编码路径从库中获取有效负载。但我不能这样做。我的客户端代码如下。 谢谢
from coapthon.client.helperclient import HelperClient
host = "127.0.0.1"
port = 5683
path = "encoding"
payload = 'text/plain'
client = HelperClient(server=(host, port))
response = client.get(path + 'application/xml' + '<value>"+str(payload)+"</value>')
client.stop()
【问题讨论】: