We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In keil NETWORK stack, how to change IP address in runtime?
In documents, LOCALM is given but there is no example to use it.
Thanks
#include "rl_net_lib.h"
extern LOCALM localm[];
localm[NETIF_ETH].IpAddr[0] = 192; localm[NETIF_ETH].IpAddr[1] = 168; localm[NETIF_ETH].IpAddr[2] = 0; localm[NETIF_ETH].IpAddr[3] = 5;
the above code work in keil ver5, but I did not find the file that localm[] is declared.maybe it is hidden in lib.
it also needs "rl_net_lib.h to be included!