Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="com.bangbits.metering.MeterProtocolKMP382"/> class.
 /// A Meter needs to have a MeterDriver passed to it, which is responsible for the physical connection.
 /// </summary>
 /// <param name='device'>
 /// Driver.
 /// </param>
 public MeterProtocolKMP382(IMeterConnection device, ILoggingBridge logger)
 {
     this.device = device;
     this.logger = logger;
     logger.info("Instantiated MeterProtocolKMP382");
 }
 public MeterProtocolIEC61107(IMeterConnection connection)
 {
     this.connection = connection;
 }
Example #3
0
        // Start of IMeterProtocol impl

        // Map a delegate to a list of registrations
        // ...or...
        // Map a list of registrations to a delegate


        public MeterProtocolKMP382(IMeterConnection device) : this(device, new NoOpLoggingBridge())
        {
        }