Share via


BthWritePageScanActivity (Compact 2013)

3/26/2014

This function sets the page-scan interval and window configuration properties of the controller.

Syntax

int BthWritePageScanActivity(
    unsigned short pageScanInterval,
    unsigned short pageScanWindow
);

Parameters

  • pageScanInterval
    [in] Interval in 0.625-millisecond intervals. The range is an even value from 0x0012 through 0x1000.
  • pageScanWindow
    [in] Window in 0.625-millisecond intervals. The range is a value from 0x0011 through 0x1000.

Return Value

The following table shows the possible return values.

Value

Description

ERROR_SUCCESS

Success.

ERROR_SERVICE_NOT_ACTIVE

The Bluetooth stack is not present.

Requirements

Header

bt_api.h

Library

Btdrt.lib

See Also

Reference

Bluetooth API Connection Functions