Gocator API

- Home
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

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

Configures a sensor's network address settings.

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

  sensor | GoSensor object.
  info | New address settings.
  wait | Should 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.