API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

BTDEVDBENUMERATOR

Brew Release
Brew MP 1.0.2
Description
Specifies the information used in enumerating through the device DB.
Members
  • what2match     : criteria to match
  • cos            : valid if control == COS
  • bBonded        : valid if control == BONDED
  • bdAddrMask     : valid if control == BD_ADDR_MASK
  • bdAddrValue    : valid if control == BD_ADDR_MASK
  • u16Value1      : valid if control == VALUE_1
  • u16Value2      : valid if control == VALUE_2
  • u16Value3      : valid if control == VALUE_3
  • u16Value4      : valid if control == VALUE_4
    


  • Example:
       To find all bonded devices whose BD addresses end with
  • what2match  : AEEBT_EC_BONDED | AEEBT_EC_BD_ADDR
  • bBonded     : TRUE
  • bdAddrMask  : 00 00 00 00 FF FF
  • bdAddrValue : 00 00 00 00 12 34
Definition
  • typedef struct
    {
       BTEnumCriteria      what2match;       
       BTClassOfService    cos;              
       boolean             bBonded;          
       BDAddress           bdAddrMask;       
       BDAddress           bdAddrValue;      
       uint16              u16Value1;        
       uint16              u16Value2;        
       uint16              u16Value3;        
       uint16              u16Value4;        
    }  BTDevDBEnumerator;
    
Comments
None