Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Subscribe to get notified when an interface link state changes.

Files

net_if.h/net_if.c

Prototype

Arguments

if_nbr

Network interface number to get last known physical link state.

fcnt

Function to call when the link changes.

p_err

Pointer to variable that will receive the return error code from this function:

NET_IF_ERR_NONE
NET_ERR_FAULT_LOCK_ACQUIRE
NET_INIT_ERR_NOT_COMPLETED

Returned Value

None.

Required Configuration

None.

Notes / Warnings

None.

Example Usage

Example application that subscribes a connection state change callback function

Example callback function for state change

  • No labels