Compartilhar via


SdpAttributeRange (Compact 2013)

3/26/2014

This structure contains the range to query for attribute or attribute service searching.

Syntax

struct _SdpAttributeRange {
  USHORT minAttribute;
  USHORT maxAttribute;
} SdpAttributeRange;

Members

  • minAttribute
    Minimum attribute value.
  • maxAttribute
    Maximum attribute value.

Remarks

In BTHNS_RESTRICTIONBLOB, one or more SdpAttributeRange structures are defined in the pRange member. The attribute values of multiple pRange elements must be in order, from least to greatest. This means that pRange[i].minAttributes<=pRange[i].maxAttributes , pRange[i].minAttributes<pRange[i+1].minAttributes, and pRange[i].maxAttributes<pRange[i+1].maxAttributes.

Example

The following example demonstrates how this value is used.

pRange[0].minAttribute = 0x0001;
pRange[0].maxAttribute = 0x0004;
// Server will return all attribIDs for given record between 1-4 AND...
pRange[1].minAttribute = 0x0009;
pRange[1].maxAttribute = 0x0009;
// ... server will return attrib ID info for attribute ID 9.

Requirements

Header

bthapi.h

See Also

Reference

Bluetooth Application Development Structures
BTHNS_RESTRICTIONBLOB