wclBluetoothLeAdvertiserConnectionStart Method |
Starts Bluetooth LE Advertising.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.19.35.0 (7.19.35.0)
Syntaxpublic int Start(
List<wclBluetoothLeAdvertisement> Advertisements,
ushort Interval,
bool UseExtendedAdvertisement,
bool Anonymous,
bool IncludeTxRssi,
sbyte PreferredTxRssi,
wclBluetoothLeAdvertisementPhy PrimaryPhy,
wclBluetoothLeAdvertisementPhy SecondaryPhy
)
Public Function Start (
Advertisements As List(Of wclBluetoothLeAdvertisement),
Interval As UShort,
UseExtendedAdvertisement As Boolean,
Anonymous As Boolean,
IncludeTxRssi As Boolean,
PreferredTxRssi As SByte,
PrimaryPhy As wclBluetoothLeAdvertisementPhy,
SecondaryPhy As wclBluetoothLeAdvertisementPhy
) As Integer
public:
int Start(
List<wclBluetoothLeAdvertisement^>^ Advertisements,
unsigned short Interval,
bool UseExtendedAdvertisement,
bool Anonymous,
bool IncludeTxRssi,
signed char PreferredTxRssi,
wclBluetoothLeAdvertisementPhy PrimaryPhy,
wclBluetoothLeAdvertisementPhy SecondaryPhy
)
Parameters
- Advertisements ListwclBluetoothLeAdvertisement
- The Bluetooth LE Advertisements
list.
- Interval UInt16
- An advertising interval in 0.625 ms
units. The value must be in range between 32 and 16384.
- UseExtendedAdvertisement Boolean
- Specifies that the advertisement
publisher should use the Extended Advertising format.
- Anonymous Boolean
- Specifies whether or not the device address is
included in the advertisement header.
- IncludeTxRssi Boolean
- Specifies whether the transmit power level
is included in the advertisement header.
- PreferredTxRssi SByte
- If specified, requests that the radio use
the indicated transmit power level for the advertisement. The
requested power level in dDm at range between -100 dBm and +20 for the
radio transmission.
- PrimaryPhy wclBluetoothLeAdvertisementPhy
- Specifies a primary advertisement PHY.
- SecondaryPhy wclBluetoothLeAdvertisementPhy
- Specifies a secondary advertisement PHY.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
See Also