niBTSG_CloseSession

NI Bluetooth Generation Toolkit 18.0 Help

Edition Date: January 2019

Part Number: 373432J-01

»View Product Info
Download Help (Windows Only)

int32 __stdcall niBTSG_CloseSession (niBTSGSession session);

Purpose

Closes the niBT SG session and releases resources associated with that session. Call this function once for each unique named session that you have created.

Parameters

Input
Name Type Description
session niBTSGSession Specifies the niBT SG session. Use this parameter to configure the behavior and operation of the appropriate NI Bluetooth Generation Toolkit function that accepts the niBTSGSession as an input.

Return Value

Name Type Description
status int32 Returns the status code of this operation. The status code either indicates success or describes an error or warning. Examine the status code from each call to an niBT SG function to determine if an error has occurred.

To obtain a text description of the status code and additional information about the error condition, call the niBTSG_GetErrorString function.

The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

WAS THIS ARTICLE HELPFUL?

Not Helpful