Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited ACD API.

...

Code Block
languagec
res = goal_eipCfgAcdOn(GOAL_TRUE);

goal_eipCfgAcdConflictFallbackIp

Configure Fallback IP Configuration, if Address Conflict Detection (ACD) detects an address conflict. The device will apply the configured IP, if it’s configured as device with static IP. If attribute 3 of the TCP/IP Class is set to DHCP, the device will start the DHCP process after a fixed timeout.

  • Transit into error state and do nothing: pass ipAddress, subnetMask and gateway = 0,

  • Set fallback IP configuration: pass valid IP configuration.

Parameter

Description

uint32_t ipAddress

fallback IP address

uint32_t subnetMask

fallback subnet mask

uint32_t gateway

fallback gateway address

Table: goal_eipCfgAcdConflictBehavior

Code Block
languagec
uint32_t ipAddress = GOAL_NET_IPV4(192, 168, 0, 100);
uint32_t subnetMask = GOAL_NET_IPV4(255, 255, 255, 0);
uint32_t gateway = GOAL_NET_IPV4(192, 168, 0, 1);

res = goal_eipCfgAcdConflictFallbackIp(ipAddress, subnetMask, gateway);