Gocator API > Go2 > Classes > Go2Sensor > Functions > Go2Sensor_SetRole
Gocator 1x00 API
Go2Sensor_SetRole
Description

Sets the sensor's current role within the system.

C
Go2Status Go2Sensor_SetRole(Go2Sensor sensor, Go2SensorRole role);
Parameters
Parameters 
Description 
Go2Sensor sensor 
Go2Sensor object. 
Go2SensorRole role 
New sensor role. 
Returns

Operation status.

Remarks

The role of the main sensor cannot be altered.

File

Go2Sensor.h

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