Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
199 views
in Technique[技术] by (71.8m points)

No COAP response from Thingsboard server

I'm trying to send COAP telemetry to Thingsboard server: echo -n '{"temperature": 25}' | coap post coap://10.159.22.65/api/v1/MkGArynJPQKXZOuCsFm3/telemetry as in documentation. I get timeout. There is no firewall issue. I receive UDP packets on server: tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes 19:15:19.601050 IP 10.159.22.67.54666 > fliot-cms-prod-01.coap: UDP, length 67

But no answer from server. COAP is enabled in config: coap: # Enable/disable coap transport protocol. enabled: "${COAP_ENABLED:true}" and when I send COAP telemetry directly from server machine it responds ok - telemetry is stored.

[root@tb-server ~]# echo -n '{"temperature": 25}' | coap post coap://10.159.22.65/api/v1/MkGArynJPQKXZOuCsFm3/telemetry (2.03)

Also sending telemetry via HTTP API from remote machine works. Just COAP ... Any ideas? /Czarek

question from:https://stackoverflow.com/questions/65943573/no-coap-response-from-thingsboard-server

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...