Browse Source

feat(attributes): add proto fields for unified attribute request

GetAttributeRequestMsg: allClientAttributes, allSharedAttributes, separateScopesResponse.
GetAttributeResponseMsg: separateScopesResponse; deprecate isMultipleAttributesRequest.
GatewayAttributesRequestMsg: clientKeys, sharedKeys, allClientKeys, allSharedKeys.
onlyShared left untouched (CoAP attribute-observe initial shared state).
pull/15865/head
dshvaika 4 months ago
parent
commit
450535955e
  1. 6
      common/proto/src/main/proto/queue.proto
  2. 4
      common/proto/src/main/proto/transport.proto

6
common/proto/src/main/proto/queue.proto

@ -418,15 +418,19 @@ message GetAttributeRequestMsg {
repeated string clientAttributeNames = 2;
repeated string sharedAttributeNames = 3;
bool onlyShared = 4;
bool allClientAttributes = 5;
bool allSharedAttributes = 6;
bool separateScopesResponse = 7;
}
message GetAttributeResponseMsg {
int32 requestId = 1;
repeated TsKvProto clientAttributeList = 2;
repeated TsKvProto sharedAttributeList = 3;
bool isMultipleAttributesRequest = 4;
bool isMultipleAttributesRequest = 4 [deprecated = true];
string error = 5;
bool sharedStateMsg = 6;
bool separateScopesResponse = 7;
}
message AttributeUpdateNotificationMsg {

4
common/proto/src/main/proto/transport.proto

@ -98,4 +98,8 @@ message GatewayAttributesRequestMsg {
string deviceName = 2;
bool client = 3;
repeated string keys = 4;
repeated string clientKeys = 5;
repeated string sharedKeys = 6;
bool allClientKeys = 7;
bool allSharedKeys = 8;
}

Loading…
Cancel
Save