Replies: 1 comment 2 replies
-
I believe the callback should have type
Wireshark includes CoAP dissectors.
When using OpenThread's CoAP implementation on the server side, the server side is responsible for generating and sending the CoAP response. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a set of coap clients (SEDs) and set of coap servers (FTDs). The clients periodically send a data packet to a previously provisioned server. I want to implement confirmable data packets from the clients to server, so that if the data packet reach the provisioned server, we get ack and if the data packets doesnt reach the prov server, we get NAK or nothing. This way we can detect whether the prov server is reachable from the client's side.
I implemented a confirmable packet send to the provisioned server and I can see the packets being delivered.
I send the the packet as follows.
error = otCoapSendRequest (srv_context.ot, response, &sensorMsgInfo, sensor_data_ack, NULL)
sensor_data_ack () is my call back for ack. It is defined as
int *sensor_data_ack (const struct coap_packet *response, struct coap_reply *reply, const struct sockaddr *from)
Issues
Cheers,
Kaushalya
Beta Was this translation helpful? Give feedback.
All reactions