SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The user must set the AP IP parameters, specifically the IP address, gateway address, DNS address, and network mask.
To set the IP addresses call:
sl_NetCfgSet(unsigned char ConfigId ,
unsigned char ConfigOpt,
unsigned char ConfigLen,
unsigned char *pValues)
This example shows how to configure IP, gateway, and DNS addresses to 9.8.7.6 and the subnet to 255.255.255.0:
_NetCfgIpV4Args_t ipV4;
ipV4.ipV4 = 0x09080706;
ipV4.ipV4Mask = 0xFFFFFF00;
ipV4.ipV4Gateway = 0x09080706;
ipV4.ipV4DnsServer = 0x09080706;
sl_NetCfgSet(SL_IPV4_AP_P2P_GO_STATIC_ENABLE,
1
,sizeof(_NetCfgIpV4Args_t),
(unsigned char *)&ipV4);
The changes take affect after reset.
Default values:
|
|
|
|
|
|
|
|
|
|
|
|