Gocator API

◆ GoSensor_SetAddress()

kStatus GoSensor_SetAddress ( GoSensor  sensor,
const GoAddressInfo info,
kBool  wait 
)

Configures a sensor's network address settings.

WARNING! This operation writes to flash storage. Review the user manual for implications.

This function uses UDP broadcasts for sensor configuration; the sensor does not need to be connected, and can be on a different subnet than the client.

The sensor will automatically reboot if the address is successfully changed.

Version
Introduced in firmware 4.0.10.27
Parameters
sensorGoSensor object.
infoNew address settings.
waitShould this function block until the sensor finishes rebooting?
Returns
Operation status.
Remarks
Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.