Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / CumulocityConnectionFactory / CumulocityConnection / connect

connect

abstract fun connect(user: String, password: String, responder: OnConnectionResult<User>): AsyncTask<String, Unit, Unit>

Verifies connection with Cumulocity and calls the callback function with the results The connection given in the callback should be the one used when using the Cumulocity services to retrieve/update assets.

Parameters

user - user id to authenticate with

password - password of the given user

responder - callback function to confirm connection, use this to call any of the cumulocity services.

Return
AsynTask the kotlin task where the http request is being called from. Not generally useful but allows request to be cancelled if so required.