Skip to content

rm_freertos_plus_tcp: FreeRTOS_IsNetworkUp returns true before DHCP finishes #337

@SeanMeng0509

Description

@SeanMeng0509

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions