Datalogic .NET SDK
BtGetPairingCount (Method)
Syntax
public static Int32 BtGetPairingCount();
Description
Get number of pairings. Used also in conjunction with BtGetPairingInfo().
Parameters Table
|
Type |
Parameter |
Description |
[in] |
void |
- |
- |
|
|
|
|
[returns] |
Int32 |
|
On success, the number of pairings in the driver is returned (0 to 16). |
[on error] |
-1 |
On failure a -1 is returned. |
Example
// Global ... public char[] address = new char[13]; string s = "00218680F763" + "\0"; address = s.ToCharArray(); // ...
private void button1_Click(object sender, EventArgs e) { bool b = Device.BtClearSerialPairing(address);
if (b) { listBox1.Items.Add("BT BtClearSerialPairing OK."); txtPairCount.Text = Device.BtGetPairingCount().ToString(); } else { listBox1.Items.Add("BT BtClearSerialPairing ERROR."); } listBox1.SelectedIndex = listBox1.Items.Count - 1; }
|
See Also
Device.BtGetPairingInfo (Method), Example #034.
Copyright © Datalogic ADC. All Right Reserved