次の方法で共有


BthWriteLSTO (Compact 2013)

3/26/2014

This function sets the link supervision timeout (LSTO) property of the connection to a device.

Syntax

int BthWriteLSTO(
    BT_ADDR        *pbt,
    unsigned short timeout
);

Parameters

  • pbt
    [in] Pointer to the device address.
  • Timeout
    [in] The timeout in Baseband slots (0.625 milliseconds). Zero specifies no LSTO. The value can range from 0x0001 through 0xFFFF representing 0.625 ms through 40.9 seconds.

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 Management Functions