Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm_freertos_plus_tcp: FreeRTOS_IsNetworkUp returns true before DHCP finishes #337

Open
SeanMeng0509 opened this issue Dec 13, 2023 · 1 comment

Comments

@SeanMeng0509
Copy link

Issue

FreeRTOS_IsNetworkUp will return true on Phy link up event. When DHCP is enabled, device won't have a valid IP address at that time, which could lead to subsequent socket operation failure.

Workaround

Instead of calling FreeRTOS_IsNetworkUp, applications shall check whether FreeRTOS_GetIPAddress() returns a valid DHCP address before any socket operation.

@SeanMeng0509
Copy link
Author

This is being internally tracked using RAP-2935.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants