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
Yes there is at least one example. Just search!
In keil ver5.16 and with network stack version 6.5 the above codes codes not work.
Use of UNDECLARED "localm" error!
It seems version 4.x examples does not work on ver5.x with newest network stack.
If you have any solution please help me.
#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!