Gocator API > Go2 > Classes > Go2System > Functions > Go2System_RestoreDefaults

Gocator 3x00 API | Contents | Reference | Previous | Up | Next

Go2System_RestoreDefaults
Functions
Description

Restores factory default settings

C

    Go2Status Go2System_RestoreDefaults(Go2System system, Go2Bool restoreIPAddress);

Parameters

Parameters | Description
Go2System system | Go2System object.
Go2Bool restoreIPAddress | Restore the factory default IP address?

Returns

Operation status.

Remarks

If 'restoreIPAddress' is TRUE, then the sensor will auto-reset and the Go2System object will be disconnected when this function completes.

This command can be called in a partially connected state. That is, if the SDK attempts to connect to a sensor with older firmware and fails due to a version error, the user can still call this command to factory restore the sensor. It will also return a version error, but the factory restore will take place.

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.

File

Go2System.h

Copyright (c) 2013 by LMI Technologies Inc. All rights reserved.
Contents | Reference