/// <summary> /// Sets up the ANT-FS client configuration parameters. This function can only be used /// while the beacon is not open. Individual parameters can be configured while the beacon is open /// If this function is not called, default beacon parameters are used. /// </summary> /// <see>SetPairingEnabled</see> /// <see>SetUploadEnabled</see> /// <see>SetDataAvailable</see> /// <see>SetBeaconTimeout</see> /// <see>SetPairingTimeout</see> /// <param name="clientParameters">ANT-FS Client parameters</param> public void Configure(ANTFS_ClientParameters clientParameters) { if (!bInitialized) { throw new ObjectDisposedException("ANTFSClient object has been disposed"); } ReturnCode theReturn = (ReturnCode)ANTFSClient_ConfigureClientParameters(unmanagedClientPtr, ref clientParameters); if (theReturn != ReturnCode.Pass) { throw new ANTFS_RequestFailed_Exception("Configure", theReturn); } }
/// <summary> /// Sets up the ANT-FS client configuration parameters. This function can only be used /// while the beacon is not open. Individual parameters can be configured while the beacon is open /// If this function is not called, default beacon parameters are used. /// </summary> /// <see>SetPairingEnabled</see> /// <see>SetUploadEnabled</see> /// <see>SetDataAvailable</see> /// <see>SetBeaconTimeout</see> /// <see>SetPairingTimeout</see> /// <param name="clientParameters">ANT-FS Client parameters</param> public void Configure(ANTFS_ClientParameters clientParameters) { if (!bInitialized) throw new ObjectDisposedException("ANTFSClient object has been disposed"); ReturnCode theReturn = (ReturnCode) ANTFSClient_ConfigureClientParameters(unmanagedClientPtr, ref clientParameters); if (theReturn != ReturnCode.Pass) throw new ANTFS_RequestFailed_Exception("Configure", theReturn); }
private static extern byte ANTFSClient_ConfigureClientParameters( IntPtr ClientPtr, ref ANTFS_ClientParameters pstInitParams);