createConnection(String jsonProfile)
2 min
Creates a new VPN profile.
Syntax:
int createConnection(String jsonProfile)
Parameters:
The jsonProfile is the VPN profile in the JSON string format.
Returns:
This method returns 0 on success and 1 on error. When this method returns 1, the caller can call getErrorString() to obtain a description of the errorFor more information, see JSON String Format for createConnection.