|
@@ -57,17 +57,16 @@ public class CenterClientHandler extends SimpleChannelInboundHandler<NettyMessag
|
|
|
public void channelActive(ChannelHandlerContext ctx) throws Exception {
|
|
|
log.info(location+">>>Connected to: {}", ctx.channel().remoteAddress());
|
|
|
|
|
|
- nettyClient.sendMessage(new NettyMessage("",200,"Pj4403070003","ZS"));
|
|
|
+
|
|
|
|
|
|
- NettyMessage nettyMessage = new NettyMessage("",4,"Pj4403070003","ZS");
|
|
|
- JSONObject content = new JSONObject();
|
|
|
- content.put("groupCode", CommonConst.groupCode);
|
|
|
- content.put("projectId", CommonConst.projectId);
|
|
|
- nettyMessage.setContent(Arrays.asList(content));
|
|
|
- nettyClient.sendMessage(nettyMessage);
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- iniAlarmResult(ctx);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void iniAlarmResult(ChannelHandlerContext ctx) {
|