public void disbleSSL(IntPtr sdkContext, uint deviceID, bool isMasterDevice) { Console.WriteLine("Trying to disable ssl"); BS2ErrorCode result = (BS2ErrorCode)API.BS2_DisableSSL(sdkContext, deviceID); if (result != BS2ErrorCode.BS_SDK_SUCCESS) { Console.WriteLine("Got error({0}).", result); } }