Search in sources :

Example 1 with EdgeUpdateMsg

use of org.thingsboard.server.gen.edge.v1.EdgeUpdateMsg in project thingsboard by thingsboard.

the class EdgeGrpcSession method onConfigurationUpdate.

void onConfigurationUpdate(Edge edge) {
    log.debug("[{}] onConfigurationUpdate [{}]", this.sessionId, edge);
    this.edge = edge;
    EdgeUpdateMsg edgeConfig = EdgeUpdateMsg.newBuilder().setConfiguration(constructEdgeConfigProto(edge)).build();
    ResponseMsg edgeConfigMsg = ResponseMsg.newBuilder().setEdgeUpdateMsg(edgeConfig).build();
    sendDownlinkMsg(edgeConfigMsg);
}
Also used : UplinkResponseMsg(org.thingsboard.server.gen.edge.v1.UplinkResponseMsg) ConnectResponseMsg(org.thingsboard.server.gen.edge.v1.ConnectResponseMsg) ResponseMsg(org.thingsboard.server.gen.edge.v1.ResponseMsg) DownlinkResponseMsg(org.thingsboard.server.gen.edge.v1.DownlinkResponseMsg) EdgeUpdateMsg(org.thingsboard.server.gen.edge.v1.EdgeUpdateMsg)

Aggregations

ConnectResponseMsg (org.thingsboard.server.gen.edge.v1.ConnectResponseMsg)1 DownlinkResponseMsg (org.thingsboard.server.gen.edge.v1.DownlinkResponseMsg)1 EdgeUpdateMsg (org.thingsboard.server.gen.edge.v1.EdgeUpdateMsg)1 ResponseMsg (org.thingsboard.server.gen.edge.v1.ResponseMsg)1 UplinkResponseMsg (org.thingsboard.server.gen.edge.v1.UplinkResponseMsg)1