TwclWiFiSniffer.SetChannel(Cardinal) Method

Sets the current channel.

Namespace: wclWiFi
public
 function SetChannel(const Channel: Cardinal): Integer;

Parameters

Channel
Type: Cardinal

The new RF channel number.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Not all adapters allow to change the channel number.