Gocator API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
kStatus GoSensor_ConnectAndLogin ( GoSensor  sensor,
GoUser  user,
const kChar password 
)

Connects and logs into the sensor using the specified user name and password.

Once security protection is enabled logging in is required in order to programmatically control a sensor. This must be used to connect to the sensor instead of anonymous connect method that fails in case security is enabled.

Version
Introduced in firmware 5.2.18.3
Parameters
sensorGoSensor object.
userUser account
passwordUser password
Returns
Operational status: kOK if funcions could complete with given login information; otherwise GS_ERROR_AUTHENTICATION indicating unauthorized access