SWRA659A March 2020 – June 2020 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The always connected profile deals with situations where the device must stay connected to the access point (AP) at any time. Staying connected may cause a high power consumption due to periodic beacon functionality. In this profile, the system will enter LPDS mode between wakeups for activity since the system state needs to be kept and low latency is required.
To optimize your use case please implement below configurations:
A good representation of a code for such case is:
//Configurations - This section is done once
sl_start(0,0,0);
sl_WlanPolicySet(...); // configure the time interval between wakeups
sl_socket();
sl_SetSocketOpt(); // configure UDP/TCP Secured or not
sl_bind();
// Sending/Receiving Data - Done when packet need to be sent or received
while (1) {
sl_Send(); // can be UDP/TCP and/or secure connection
sl_Recv(); // can be UDP/TCP and/or secure connection
Delay();
}