.Settxpower Method

Top  Previous  Next

Function:

Causes the Wi-Fi interface to commence the adjustment of TX power to the specified level.

Syntax:

wln.settxpower(level as byte) as accepted_rejected

Returns:

One of accepted_rejected constants:

0- ACCEPTED.

1- REJECTED.

See Also:

Setting TX Power, Wln Tasks

 


Details

Part

Description

level

Value between 4 and 15 that roughly corresponds to the transmitter's output power in dB. Attempting to specify the level < 4 results in level = 4; attempting to specify the level > 15 results in level = 15.

Adjusting TX power is an "immediate" task and there is a certain correct way of handling tasks. "Immediate" means you don't have to wait for the task to complete — it is finished as soon as wln.settxpower is done executing. The on_wln_task_complete event is still generated.