Open nsoblath opened 7 years ago
A few notes, consistent with the above:
retcode
0 and empty payload and return_msg
. However, some processes will intermingle more detail (eg, a multi-get may send values from each target as they are received, in addition to the full set of values in the final reply, the ESR service may send out something indicating scan of coil <n>/<N>; <X>% complete
. These messages may come at the HBI, or they may come when events trigger them (like changing coil) and reset the HBI.
Problem
In some cases actions started by a Dripline request (e.g. via an OP_CMD) are long-running, so the reply is not sent until long after the standard timeout for the client (10 seconds is typical). This situation requires the user to know that the command is long-running and set an appropriate custom timeout.
Proposed Solution
The basic idea is that we let the service, which is performing the action, inform the client that it's working, and that the client should wait longer for a response.
Here are the details:
msgop
field where an integer defines types of requests, we would define a field for replies that is an integer that defines the type of reply.retcode
andreturn_msg
, as well as in the payload.