Hello.
I'm testing the demo "security_webserver" and I have the following problem, if DEMOCFG_ENABLE_SNTP = 1 and DEMOCFG_ENABLE_DHCP = 1, it works fine, but if DEMOCFG_ENABLE_SNTP = 1 and DEMOCFG_ENABLE_DHCP = 0, the function "RTCS_resolve_ip_address ()" returns me a 0. Anyone know the cause?.
I need to use this function with DHCP to OFF.
I´m working with MQX3.7
Thanks in advance.
Solved! Go to Solution.
Hi Fernando,
Are you sure you are assigning a static IP address to the board that is in the same network where it is connected?
You can set the IP in the file Security.h. Look for the ENET_IPADDR define:
#define ENET_IPADDR IPADDR(169,254,3,3)
If you are using the IP 192.168.1.5, for instance then you have to change to:
#define ENET_IPADDR IPADDR(192,168,1,5)
Hope this helps,
Regards,
-Garabo
Hi Fernando,
Are you sure you are assigning a static IP address to the board that is in the same network where it is connected?
You can set the IP in the file Security.h. Look for the ENET_IPADDR define:
#define ENET_IPADDR IPADDR(169,254,3,3)
If you are using the IP 192.168.1.5, for instance then you have to change to:
#define ENET_IPADDR IPADDR(192,168,1,5)
Hope this helps,
Regards,
-Garabo