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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

748 Views
danielchai
Senior Contributor I

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.

0 Kudos
1 Reply

326 Views
soledad
NXP Employee
NXP Employee

Hi Daniel,

To unbind an IP address from a device interface, call RTCS_if_unbind()

Description of the RTCS functions can be found in the RTCS Reference Manual.

Regards

Sol

0 Kudos