|
Enabling Power |
Top Previous Next |
The Wi-Fi module features an onboard power switch. A dedicated power control line is provided. On the EM1000 module, this power switch is controlled by the GPIO line 51. The switch is OFF and the power to the Wi-Fi module is not supplied when the state of this line is HIGH or the line is tri-stated (configured as input). When the EM1000 powers up, all of its I/O lines are tri-stated. Therefore, by default, the Wi-Fi module is off. This is described as the power-off state in the Wln State Transitions topic.
To supply the power to the Wi-Fi module, enable the GPIO line #51 and set it to LOW. I/O line manipulation falls under the domain of the io object. Use the following code to enable the power:
'enable power to the Wi-Fi module io.num=PL_IO_NUM_51 io.enabled=YES io.state=LOW
|