SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The command sl_SetSockOpt changes the socket properties (after opening the socket).
Examples:
Change the operating channel:
sl_SetSockOpt(soc, SL_SOL_SOCKET, SO_CHANGE_CHANNEL, &channel,1);
Change the default PHY data rate:
sl_SetSockOpt(soc, SL_SOL_PHY_OPT, SO_PHY_RATE, &rate,1);
Change the default Tx power:
sl_SetSockOpt(soc, SL_SOL_PHY_OPT, SO_PHY_TX_POWER, &power,1);
Change the number of frames to transmit (see Section 15.5):
sl_SetSockOpt(soc, SL_SOL_PHY_OPT, SO_PHY_NUM_FRAMES_TO_TX, &numFrames,1);
Change the 802.11b preamble:
sl_SetSockOpt(soc, SL_SOL_PHY_OPT, SO_PHY_PREAMBLE,&preamble,,1);