SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
SL_POLICY_SCAN defines a system scan time interval if there is no connection. The default interval is 10 minutes. After the scan interval is set, an immediate scan is activated. The next scan is based on the scan interval settings.
unsigned long intervalInSeconds = 60;
#define SL_SCAN_ENABLE 1
sl_WlanPolicySet (SL_POLICY_SCAN,SL_SCAN_ENABLE, (unsigned char
*)&intervalInSeconds,sizeof(intervalInSeconds));
#define SL_SCAN_DISABLE 0
sl_WlanPolicySet(SL_POLICY_SCAN,SL_SCAN_DISABLE,0,0);