The messages will follow the request-response message exchange pattern. The general format of the request payload is:
{
RequestName : {
"requestId" : [String] requestId,
"device" : [String] device,
}
}
The fields are defined as follows:
- RequestName: the name of the request, it will vary for the operations. This generally should be the device where the request message originates.
- requestId: a GUID used to match requests with responses. For every request, the client supplies a requestId that it can use to match the corresponding response. For every notification, the sender supplies a requestId.
- device: the remote device making the request.
The general format of the response payload is
{
response: {
"requestId" : [String] requestId,
<ResponseStatus>
}
}
The fields are defined as follows:
- requestId: matches the response to a request.