SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Change the transceiver operational channel. If changing the channel during packet transmission, the channel is changed only after all packet transmission completes.
Example:
_i16 Status;
_i16 channel = 9;
Status = sl_SetSockOpt(soc, SL_SOL_SOCKET, SL_SO_CHANGE_CHANNEL, &channel,sizeof(channel));
if (Status)
{
/* Error */
}
The channel parameter has no default value, and therefore must be set when opening the socket, through the sl_Send operation, or through sl_SetSockOpt, as specified in this section.