function process(advertiserData, cursor) {
  var iBeacon = {};
  var data = advertiserData.manufacturerSpecificData.data;

  iBeacon.uuid = data.substr(4,32);
  iBeacon.major = data.substr(36,4);
  iBeacon.minor = data.substr(40,4);
  iBeacon.txPower = pdu.convertTxPower(data.substr(44,2));

  var licenseeName = licenseeNames[iBeacon.uuid];
  if(typeof licenseeName === 'undefined') {
    licenseeName = 'Unknown';
  }
  iBeacon.licenseeName = licenseeName;

  advertiserData.manufacturerSpecificData.iBeacon = iBeacon;

  return cursor + 46;
}
/**
 * Parse Apple iBeacon manufacturer specific data.
 * @param {Object} advertiserData The object containing all parsed data.
 * @param {Number} cursor The current index into the raw data.
 */
Parse Apple iBeacon manufacturer specific data.
@param {Object} advertiserData The object containing all parsed data.
@param {Number} cursor The current index into the raw data.
Parse Apple iBeacon manufacturer specific data . @param { Object } advertiserData The object containing all parsed data . @param { Number } cursor The current index into the raw data .
function process(advertiserData, cursor) {
  var iBeacon = {};
  var data = advertiserData.manufacturerSpecificData.data;
  iBeacon.uuid = data.substr(4,32);
  iBeacon.major = data.substr(36,4);
  iBeacon.minor = data.substr(40,4);
  iBeacon.txPower = pdu.convertTxPower(data.substr(44,2));
  var licenseeName = licenseeNames[iBeacon.uuid];
  if(typeof licenseeName === 'undefined') {
    licenseeName = 'Unknown';
  }
  iBeacon.licenseeName = licenseeName;
  advertiserData.manufacturerSpecificData.iBeacon = iBeacon;
  return cursor + 46;
}
function process ( advertiserData , cursor ) { var iBeacon = { } ; var data = advertiserData . manufacturerSpecificData . data ; iBeacon . uuid = data . substr ( 4 , 32 ) ; iBeacon . major = data . substr ( 36 , 4 ) ; iBeacon . minor = data . substr ( 40 , 4 ) ; iBeacon . txPower = pdu . convertTxPower ( data . substr ( 44 , 2 ) ) ; var licenseeName = licenseeNames [ iBeacon . uuid ] ; if ( typeof licenseeName === 'undefined' ) { licenseeName = 'Unknown' ; } iBeacon . licenseeName = licenseeName ; advertiserData . manufacturerSpecificData . iBeacon = iBeacon ; return cursor + 46 ; }
Parse Apple iBeacon manufacturer specific data.
Parse Apple iBeacon manufacturer specific data .