Datalogic .NET SDK
BtClearSerialPairing (Method)
Syntax
public static Boolean BtClearSerialPairing (char[] addrStr);
Description
Destroy a serial pairing defined from the parameter passed.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
char[] |
addrStr |
Device address to which delete the pair. This must be an address in this format: aabbccddeeff and must be a null termintated string. (NOTE: The address can’t be |
|
|
|
|
[returns] |
Boolean |
|
On success, TRUE is returned. |
[on error] |
FALSE |
|
FALSE is returned to indicate failure. |
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.BtGetPairingCount (Method), Device.BtCreateSerialPairing (Method), Example #034.
Copyright © Datalogic ADC. All Right Reserved