Hello,
Can anybody help me in giving idea or sample code in assigning static_ip_addr(ipaddress,gateway,subnet)
I tried INET_ADDR and 0x45FFCC............. But no use.Any body plese help me in this .
Regards,
Krishnan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
Can anybody help me in giving idea or sample code in assigning static_ip_addr(ipaddress,gateway,subnet)
I tried INET_ADDR and 0x45FFCC............. But no use.Any body plese help me in this .
Regards,
Krishnan
Hi Krishnan,
this is a call to lwIPInit() to set static IP address = 192.168.0.1, subnet mask = 255.255.255.0 and gateway = 0.0.0.0:
lwIPInit(g_ui32SysClock, pui8MACArray, 0xC0A80001, 0xFFFFFF00, 0, IPADDR_USE_STATIC);
of cource you have to fill g_ui32SysClock and pui8MACArray with your clock and MAC address values.
Regards
Mario