Search in sources :

Example 1 with DNP3Exception

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;
    }
}
Also used : Channel(com.automatak.dnp3.Channel) DNP3Exception(com.automatak.dnp3.DNP3Exception)

Aggregations

Channel (com.automatak.dnp3.Channel)1 DNP3Exception (com.automatak.dnp3.DNP3Exception)1