SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
AP mode is the default initial mode of the device. AP configuration is not effective until the device enters into AP mode. This configuration requires a reset, and is persistent with no dependency on the system-persistent configuration. If the device gets set to a different mode, and the AP mode is required again, the following API should be called.
_i16 Role;
_i16 Status;
Status = sl_WlanSetMode(ROLE_AP);
if( Status )
{
/* error */
}
sl_Stop(0);
Role = sl_Start(NULL,NULL,NULL);
if (ROLE_AP != Role)
{
/* Role Error */
}