com.alarexgroup.m2mplf.adapters.io
Interface PulseAdapterListener

All Known Implementing Classes:
CountImpulses
public interface PulseAdapterListener

Interface for handling of events from the reader. Method inPulseCounter is called in case of reading the requested number of impulses or command for reading the current status of the reader.
Method returns two types of data

Time required for reading the impulses in ms - PulseAdapter.createLimitPulseCounter(long)
Number of impulses - PulseAdapter.createStartStopPulseCounter()

Method Summary
 void onPulseCounterReached(long value, int mode)
          Method for handling of information from the reader.
 

Method Detail

onPulseCounterReached

void onPulseCounterReached(long value,
                           int mode)
Method for handling of information from the reader.

Parameters:
mode - reader's mode
PulseAdapter.MODE_LIMIT_COUNTER
PulseAdapter.MODE_START_STOP_COUNTER
value - value according to the mode.