Get the current DHCP setting (Instance Attribute ID: 3).
This function returns directly the DHCP flag in the return value.
#include <api/EI_API.h>
EI_API_ADP_T* pEI_API_ADP = NULL;
uint32_t errCode;
uint8_t numInterfaces = 1;
bool bDHCP;
ETHIP_API T * EI_API_ADP_new(uint8_t numInterfaces_p)
Create a new EtherNet/IP adapter.
Definition: EI_API_ADP_main.c:195
ETHIP_API uint32_t EI_API_ADP_getDHCP(T *pAdp_p, bool *pDhcpEnabled_p)
Get the current DHCP setting (Instance Attribute ID: 3).
Definition: EI_API_ADP_main.c:1970