Skip to content

Commit

Permalink
Added LATEST tag to EdgeVersion proto
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-babak committed Apr 11, 2024
1 parent 5813501 commit 791f647
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private List<UplinkMsg> convertToUplinkMsgsPack(List<CloudEvent> cloudEvents) {

private UplinkMsg convertEntityEventToUplink(TenantId tenantId, CloudEvent cloudEvent) {
log.trace("Executing convertEntityEventToUplink, cloudEvent [{}], edgeEventAction [{}]", cloudEvent, cloudEvent.getAction());
EdgeVersion edgeVersion = EdgeVersion.V_3_6_2;
EdgeVersion edgeVersion = EdgeVersion.V_LATEST;
switch (cloudEvent.getType()) {
case DEVICE:
return deviceProcessor.convertDeviceEventToUplink(tenantId, cloudEvent, edgeVersion);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private void reply(ToDeviceRpcRequest rpcRequest, int requestId, FromDeviceRpcRe

public UplinkMsg convertRpcCallEventToUplink(CloudEvent cloudEvent) {
log.trace("Executing convertRpcCallEventToUplink, cloudEvent [{}]", cloudEvent);
DeviceRpcCallMsg rpcResponseMsg = ((DeviceMsgConstructor) deviceMsgConstructorFactory.getMsgConstructorByEdgeVersion(EdgeVersion.V_3_6_2)).constructDeviceRpcCallMsg(cloudEvent.getEntityId(), cloudEvent.getEntityBody());
DeviceRpcCallMsg rpcResponseMsg = ((DeviceMsgConstructor) deviceMsgConstructorFactory.getMsgConstructorByEdgeVersion(EdgeVersion.V_LATEST)).constructDeviceRpcCallMsg(cloudEvent.getEntityId(), cloudEvent.getEntityBody());
return UplinkMsg.newBuilder()
.setUplinkMsgId(EdgeUtils.nextPositiveInt())
.addDeviceRpcCallMsg(rpcResponseMsg).build();
Expand Down
2 changes: 2 additions & 0 deletions common/edge-api/src/main/proto/edge.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ enum EdgeVersion {
V_3_6_1 = 4;
V_3_6_2 = 5;
V_3_6_4 = 6;

V_LATEST = 999;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion docker-edge/.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DOCKER_REPO=thingsboard

TB_NODE_DOCKER_NAME=tb-node
TB_VERSION=3.6.3
TB_VERSION=3.6.3-SNAPSHOT

TB_EDGE_DOCKER_NAME=tb-edge
TB_EDGE_VERSION=3.6.4EDGE-SNAPSHOT
2 changes: 1 addition & 1 deletion docker-edge/docker-compose.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ version: '3.0'
services:
postgres:
restart: always
image: "postgres:12"
image: "postgres:15"
ports:
- "5432"
environment:
Expand Down

0 comments on commit 791f647

Please sign in to comment.