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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…