|
|
|
@ -103,6 +103,8 @@ public class StreetController {
|
|
|
|
|
|
|
|
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),1);
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),1);
|
|
|
|
|
|
|
|
}else if (configProperties.getLightSource().getType() == 3){
|
|
|
|
|
|
|
|
LightSourceService.lightController(lightSource.getIp(),lightSource.getPort(),1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -126,6 +128,8 @@ public class StreetController {
|
|
|
|
log.info("ip:{},status:{}",lightSource.getIp(),status);
|
|
|
|
log.info("ip:{},status:{}",lightSource.getIp(),status);
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),0);
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),0);
|
|
|
|
|
|
|
|
}else if (configProperties.getLightSource().getType() == 3){
|
|
|
|
|
|
|
|
LightSourceService.lightController(lightSource.getIp(),lightSource.getPort(),0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -146,6 +150,8 @@ public class StreetController {
|
|
|
|
equip.DisConnect();
|
|
|
|
equip.DisConnect();
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),1);
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),1);
|
|
|
|
|
|
|
|
}else if (configProperties.getLightSource().getType() == 3){
|
|
|
|
|
|
|
|
LightSourceService.lightController(lightSource.getIp(),lightSource.getPort(),1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -166,6 +172,8 @@ public class StreetController {
|
|
|
|
equip.DisConnect();
|
|
|
|
equip.DisConnect();
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
}else if(configProperties.getLightSource().getType() == 2){
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),0);
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(),lightSource.getPort(),configProperties.getLightSource().getIndex(),0);
|
|
|
|
|
|
|
|
}else if (configProperties.getLightSource().getType() == 3){
|
|
|
|
|
|
|
|
LightSourceService.lightController(lightSource.getIp(),lightSource.getPort(),0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|