# Set Online

Sets the In-Sight sensor into Online or Offline mode.

Note:

- This command cannot place the In-Sight sensor into Online mode if the sensor has been set Offline either manually in the In-Sight Explorer user interface or by a Discrete Input signal.
- The In-Sight Explorer application will send Set Online commands to In-Sight sensors to perform administrative functions such as Backup and Restore.

## Set Online Inputs

Syntax: SO[Int]

Parameter | Description
--- | ---
Int | 0 = Sets the In-Sight sensor Offline. 1 = Sets the In-Sight sensor Online.

## Set Online Outputs

Returns a status code. The status codes are:

Status Codes | Description
--- | ---
1 | The command was executed successfully.
0 | Unrecognized command.
-1 | The value given for Int is either out of range, or is not a valid integer.
-2 | The command could not be executed.
-5 | The communications flag was successful but the sensor did not go Online because the sensor is set Offline manually through the In-Sight Explorer user interface or by a Discrete I/O signal.
-6 | User does not have Full Access to execute the command.

## Example: Set the In-Sight Sensor Into Online Mode

To set an In-Sight sensor into Online mode, issue the following command: SO1

The In-Sight sensor responds with a status code of 1, indicating that the sensor was successfully placed Online.

## Example: Set the In-Sight Sensor into Offline Mode

To set an In-Sight sensor into Offline mode, issue the following command: SO0

The In-Sight sensor responds with a status code of 1, indicating that the sensor was successfully taken Offline.