AnsweredAssumed Answered

How to change the IP address when Http server is running?

Question asked by Daniel Chai on Jan 22, 2014
Latest reply on Jan 22, 2014 by soledad

Hi All,

I have a GS1500M WiFi tower and TWRK60F120.

In httpsrv demo code IN mqx4.0.2, I can change the

#define ENET_IPADDR  IPADDR(192,168,0,1) and

   #define A 192

    #define B 168

    #define C 0

    #define D 1

to change the IP address of my device.

Now after I configure all the setting for httpsrv and use the HTTPSRV_init function start it, how can I reconfigure the IP address,switch the mode from "adhoc" to "managed"

and restart the HTTPSRV_init? Because by default I want the WiFi device act as a "adhoc" mode, after user finish some configurations through a browser, I can set it back to

"managed" mode. Is there a way to do this?

 

Thank you.

Outcomes