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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,724件の閲覧回数
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 件の賞賛
返信
1 返信

1,302件の閲覧回数
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 件の賞賛
返信