Partager via


BthReadLSTO (Compact 2013)

3/26/2014

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

Syntax

int BthReadLSTO(
    BT_ADDR        *pbt,
    unsigned short *ptimeout
);

Parameters

  • pbt
    [in] Pointer to the device address.
  • Ptimeout
    [out] Pointer to the timeout in Baseband slots (0.625 milliseconds). Zero indicates 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