lib/ble/common/manufacturers/radiusnetworks/altbeacon.js
function isAltBeacon(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var isCorrectLength = ((data.length + 6) === (LENGTH * 2));
  var isCorrectCode = (data.substr(0,4) === CODE);

  return isCorrectLength && isCorrectCode;
}
function isAltBeacon(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var isCorrectLength = ((data.length + 6) === (LENGTH * 2));
  var isCorrectCode = (data.substr(0,4) === CODE);

  return isCorrectLength && isCorrectCode;
}
function isAltBeacon ( advertiserData ) { var data = advertiserData . manufacturerSpecificData . data ; var isCorrectLength = ( ( data . length + 6 ) === ( LENGTH * 2 ) ) ; var isCorrectCode = ( data . substr ( 0 , 4 ) === CODE ) ; return isCorrectLength && isCorrectCode ; }
Verify if the given manufacturerSpecificData represents an AltBeacon.
@param {Object} advertiserData The object containing all parsed data.
Verify if the given manufacturerSpecificData represents an AltBeacon .