function process(data) {
  var flags = parseInt(data, 16);
  var result = [];
  if(flags & 0x01) {
    result.push(BIT0_NAME);
  }
  if(flags & 0x02) {
    result.push(BIT1_NAME);
  }
  if(flags & 0x04) {
    result.push(BIT2_NAME);
  }
  if(flags & 0x08) {
    result.push(BIT3_NAME);
  }
  if(flags & 0x10) {
    result.push(BIT4_NAME);
  }
  if(flags & 0x20) {
    result.push(BIT5_NAME);
  }
  return result;
}
/**
 * Parse BLE advertiser data flags.
 * @param {string} data The raw flag data as a hexadecimal-string.
 */
Parse BLE advertiser data flags.
@param {string} data The raw flag data as a hexadecimal-string.
Parse BLE advertiser data flags . @param { string } data The raw flag data as a hexadecimal - string .
function process(data) {
  var flags = parseInt(data, 16);
  var result = [];
  if(flags & 0x01) {
    result.push(BIT0_NAME);
  }
  if(flags & 0x02) {
    result.push(BIT1_NAME);
  }
  if(flags & 0x04) {
    result.push(BIT2_NAME);
  }
  if(flags & 0x08) {
    result.push(BIT3_NAME);
  }
  if(flags & 0x10) {
    result.push(BIT4_NAME);
  }
  if(flags & 0x20) {
    result.push(BIT5_NAME);
  }
  return result;
}
function process ( data ) { var flags = parseInt ( data , 16 ) ; var result = [ ] ; if ( flags & 0x01 ) { result . push ( BIT0_NAME ) ; } if ( flags & 0x02 ) { result . push ( BIT1_NAME ) ; } if ( flags & 0x04 ) { result . push ( BIT2_NAME ) ; } if ( flags & 0x08 ) { result . push ( BIT3_NAME ) ; } if ( flags & 0x10 ) { result . push ( BIT4_NAME ) ; } if ( flags & 0x20 ) { result . push ( BIT5_NAME ) ; } return result ; }
Parse BLE advertiser data flags.
Parse BLE advertiser data flags .