lib/ble/common/manufacturers/sticknfind/index.js
function process(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var packetType = data.substr(0,2);

  switch(packetType) {
    case '01':
      snfsingle.process(advertiserData);
      break;
    case '42':
      snsmotion.process(advertiserData);
      break;
    default:
  }
}
function process(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var packetType = data.substr(0,2);

  switch(packetType) {
    case '01':
      snfsingle.process(advertiserData);
      break;
    case '42':
      snsmotion.process(advertiserData);
      break;
    default:
  }
}
function process ( advertiserData ) { var data = advertiserData . manufacturerSpecificData . data ; var packetType = data . substr ( 0 , 2 ) ; switch ( packetType ) { case '01' : snfsingle . process ( advertiserData ) ; break ; case '42' : snsmotion . process ( advertiserData ) ; break ; default : } }
Parse BLE advertiser manufacturer specific data for StickNFind.
@param {Object} advertiserData The object containing all parsed data.
Parse BLE advertiser manufacturer specific data for StickNFind .