FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_SetDiscoveryIpConfig ( kNode  node,
const kIpConfig ipConfig 
)

Sets the current IP configuration via a sensor discovery broadcast.

This function uses discovery broadcast messages (UDP) to alter IP address configuration. This approach can be used to change the IP address of a node discovered on a different subnet. After receiving a Set Address message, the node will automatically reset.

This function should only be used on nodes in the online state (kNODE_STATE_ONLINE). For connected sensors, the IP configuration functions in the kNet module should be used instead. kNet functions provide a more consistent configuration experience for connected sensors (i.e., the node doesn't automatically reset as a result of configuration changes).

Parameters
nodeNode object.
ipConfigIP configuration.
Returns
Operation status.
See also
kNode_DiscoveryIpConfig, kNet_SetNextIpConfig