use of com.automatak.dnp3.DNP3Exception in project solarnetwork-node by SolarNetwork.
the class OutstationService method createOutstation.
private Outstation createOutstation() {
Channel channel = channel();
if (channel == null) {
log.info("DNP3 channel not available for outstation [{}]", getUid());
return null;
}
log.info("Initializing DNP3 outstation [{}]", getUid());
try {
return channel.addOutstation(getUid(), commandHandler, app, createOutstationStackConfig());
} catch (DNP3Exception e) {
log.error("Error creating outstation application [{}]: {}", getUid(), e.getMessage(), e);
return null;
}
}
Aggregations