If Ive understood correctly, certain messages sent to the Ant devices elicit responses. However, as far as I can tell, the response only contains the message ID ('type') of the initiating request, and doesnt contain any sort of correlation identifier.
Does the Ant device guarantee that a response will always be sent to such messages, or do I have to handle the potential case that the response may never arrive (for whatever reason)?
If the response could potentially never arrive back, or could take too long a time (due to load on the device etc), and the caller times out while waiting, how do you handle the situation where there could be two different messages with the same message ID sent, and the response to the first message eventually returns to the caller, but since the 1st caller has timed out and moved on, the second caller receives the response to the first message (does that make sense)? This now leaves a second response pending to be returned. Obviously this really messes with any state machine.
How do people typically handle this request/response protocol without any request message correlation ID?
Thanks again
N