passTelegram(telegram) {
    // Check if we have definition for this meter...
    if (!this._disableMeterDataCheck && !this.getMeterData(telegram))
      return false;

    // Check if we have meter filter
    if (this._filter && this._filter.length > 0) {
      let meterAddress = this.getAddressField(telegram).toString('hex');
      if (this._filter.indexOf(meterAddress) < 0)
        return false;
    }
    return true;
  }
/**
  * Method checks if telegram should be passed to future processing.
  *
  * @param telegram
  * @return boolean pass
  */
Method checks if telegram should be passed to future processing.
@param telegram
@return boolean pass
Method checks if telegram should be passed to future processing . @param telegram @return boolean pass
passTelegram(telegram) {
    if (!this._disableMeterDataCheck && !this.getMeterData(telegram))
      return false;
    if (this._filter && this._filter.length > 0) {
      let meterAddress = this.getAddressField(telegram).toString('hex');
      if (this._filter.indexOf(meterAddress) < 0)
        return false;
    }
    return true;
  }
passTelegram ( telegram ) { if ( ! this . _disableMeterDataCheck && ! this . getMeterData ( telegram ) ) return false ; if ( this . _filter && this . _filter . length > 0 ) { let meterAddress = this . getAddressField ( telegram ) . toString ( 'hex' ) ; if ( this . _filter . indexOf ( meterAddress ) < 0 ) return false ; } return true ; }
Method checks if telegram should be passed to future processing.
Method checks if telegram should be passed to future processing .
// Check if we have definition for this meter... // Check if we have meter filter