Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
This function turns ON the Wi-Fi transceiver again
NOTE: this function does NOT reconnect Flyport to Wi-Fi network automatically. The User should
handle the connection of the Wireless LAN after the transceiver is enabled.
Sleep Mode
When Sleep mode is activated, the Wi-Fi transceiver is turned OFF, and also PIC enters a low power
mode to save energy. This mode however locks almost all the power of the microcontroller, so only
external events can wake up Flyport from this state.
The external events that can wake up Flyport are 2:
• RTCC alarm
• External Interrupts (up to 3 differents)
Both of the above events launch special Interrupt Service Routines (ISRs) that permit the
microcontroller to wake up from a sleep condition. It is not important what the ISR related functions
do, the important point is that they are activated from external events(the RTCC alarm can be seen as
an external event since it uses a secondary oscillator that is independent from the microcontroller).
To Activate Sleep Mode → WFSleep();
This function activates the Sleep mode, so turn OFF the Wi-Fi transceiver and stops microcontroller
working.
To Deactivate Sleep Mode
Only RTCC and external interrupts can deactivate the sleep mode.
QUESTION: How can I use Sleep mode in my application? How can I set a time to wake up my
Flyport?
The next example shows how both the RTCC and External Interrupts can be used to wake up Flyport
from Sleep at a defined time or with the change of a microcontroller pin state.
71










