Part Number: ti-rtos
Tool/software: TI-RTOS
I'm trying to implement the ability to change the static IP Address remotely. Using CCS v6.1.3. I'm trying to use this routine
void netIPAddress(void){
CI_IPNET NA;
HANDLE hCfgIpAddr;
/* Setup manual IP address */
bzero(&NA, sizeof(NA));
NA.IPAddr = inet_addr("192.168.1.2");
NA.IPMask = inet_addr("255.255.255.0");
strcpy(NA.Domain, "demo.net");
NA.NetType = 0;
/* get the current static IP entry */
CfgGetEntry(0, CFGTAG_IPNET, 1, 1, &hCfgIpAddr);
/* remove the current static IP entry */
CfgRemoveEntry(0, hCfgIpAddr);
/* add a new static IP entry */
CfgAddEntry(0, CFGTAG_IPNET, 1, 0,
sizeof(CI_IPNET), (UINT8 *)&NA, 0);
}
but getting undefined errors for HANDLE, CI_IPNET, and CFGTAG_IPNET. My thinking is that i'm missing an #include but basically am at a loss on how to correct the build failure. I'm also happy to use a different routine if suggested.