Hi,
I tested the wifi_httpsrv example, and it works correctly without any lag.
When I enter 192.168.137.18 in the browser, the page loads almost immediately. The polling examples refreshes every second.
I also pinged the board several times and experienced no packet loss.
FRDM-RW612:
Starting httpsrv DEMO
[i] Initializing Wi-Fi connection...
STA MAC Address: C0:59:DB:22:53:8D
board_type: 2, board_type mapping:
0----QFN
1----CSP
2----BGA
[i] Successfully initialized Wi-Fi module
Connecting as client to ssid: AP_BS with password 12345678
[i] Connected to Wi-Fi
ssid: AP_BS
[!]passphrase: 12345678
Now join that network on your device and connect to this IP: 192.168.137.18
***********************************************************
HTTP Server example
***********************************************************
IPv4 Address : 192.168.137.18
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.137.1
IPv6 Address0 : FE80::C295:DAFF:FE01:557D
IPv6 Address1 : -
IPv6 Address2 : -
mDNS hostname : wifi-http
***********************************************************
Ready
PC:
PS C:\> ping 192.168.137.18 -n 30
Pinging 192.168.137.18 with 32 bytes of data:
Reply from 192.168.137.18: bytes=32 time=20ms TTL=255
Reply from 192.168.137.18: bytes=32 time=22ms TTL=255
Reply from 192.168.137.18: bytes=32 time=9ms TTL=255
Reply from 192.168.137.18: bytes=32 time=128ms TTL=255
Reply from 192.168.137.18: bytes=32 time=97ms TTL=255
Reply from 192.168.137.18: bytes=32 time=112ms TTL=255
Reply from 192.168.137.18: bytes=32 time=113ms TTL=255
Reply from 192.168.137.18: bytes=32 time=107ms TTL=255
Reply from 192.168.137.18: bytes=32 time=78ms TTL=255
Reply from 192.168.137.18: bytes=32 time=49ms TTL=255
Reply from 192.168.137.18: bytes=32 time=62ms TTL=255
Reply from 192.168.137.18: bytes=32 time=87ms TTL=255
Reply from 192.168.137.18: bytes=32 time=67ms TTL=255
Reply from 192.168.137.18: bytes=32 time=108ms TTL=255
Reply from 192.168.137.18: bytes=32 time=21ms TTL=255
Reply from 192.168.137.18: bytes=32 time=149ms TTL=255
Reply from 192.168.137.18: bytes=32 time=46ms TTL=255
Reply from 192.168.137.18: bytes=32 time=67ms TTL=255
Reply from 192.168.137.18: bytes=32 time=70ms TTL=255
Reply from 192.168.137.18: bytes=32 time=81ms TTL=255
Reply from 192.168.137.18: bytes=32 time=117ms TTL=255
Reply from 192.168.137.18: bytes=32 time=105ms TTL=255
Reply from 192.168.137.18: bytes=32 time=116ms TTL=255
Reply from 192.168.137.18: bytes=32 time=109ms TTL=255
Reply from 192.168.137.18: bytes=32 time=24ms TTL=255
Reply from 192.168.137.18: bytes=32 time=107ms TTL=255
Reply from 192.168.137.18: bytes=32 time=128ms TTL=255
Reply from 192.168.137.18: bytes=32 time=122ms TTL=255
Reply from 192.168.137.18: bytes=32 time=183ms TTL=255
Reply from 192.168.137.18: bytes=32 time=414ms TTL=255
Ping statistics for 192.168.137.18:
Packets: Sent = 30, Received = 30, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 414ms, Average = 97ms
PS C:\>
I believe the issue is not with the RW612 or the example, but rather with your network. It might be congested, experiencing interference, or there could be a configuration on the access point causing the lag. Please try connecting to a different AP and test again.
Regards,
Daniel.