Hi,
I encountered a "Thread kick off too slow" issue. Let me explain it
My develop environment
Hardware: nRf7002-DK
SDK: 2.6.1
A. I copy the sample nrf/samples/net/mqtt to my work space, use "wifi_cred add" to connect my WIFI. Everything is running well.
B. Because our environment only allow to use static IP, so I do the following changes
- Disable DHCP client ( Mark CONFIG_NET_DHCPV4 )
- Set CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.0.201"
- Set CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.0.1"
- Set CONFIG_DNS_SERVER_IP_ADDRESSES=y
- Set CONFIG_DNS_SERVER1="192.168.0.1"
Beside the above changes, I modify nothing. The result is
- The samplecan connect to my WIFI and can send MQTT package to the server.
- The network_task is trigger after 20 seconds ( in network.c )
My question is, if I use DHCP, the network_task is trigger almost immediately, why the same sample delays almost 20 seconds after I change to static IP?
I tested nrf/samples/wifi/sta , both DHCP/STATIC IP work well. I already try almost 3 days, any hit?
Thanks
Lance