Datalogic .NET SDK
BtGetPairingInfo (Method)
Syntax
public static BTPair BtGetPairingInfo (int PairCount);
Description
Get pairing info for all pairs. Used in conjunction with BtGetPairingCount().
Parameters Table
|
Type |
Parameter |
Description |
[in] |
int |
PairCount |
Number of devices for which a pairing was set. |
|
|
|
|
[returns] |
BTPair |
|
On success, the pairing information is returned in an instance of the BTPair sub-class |
[on error] |
- |
|
- |
Example
private void btnGetPairs_Click(object sender, EventArgs e) { Device.BTPair oBTPair = new Device.BTPair();
oBTPair = Device.BtGetPairingInfo(Device.BtGetPairingCount());
for (int i = 0; i < Device.BtGetPairingCount(); i++) { listwiewBTPAIR.Items.Add(new ListViewItem(new string[] { "AddrStr", oBTPair.AddrStr[i].ToString() })); listwiewBTPAIR.Items.Add(new ListViewItem(new string[] { "BT_Addr", oBTPair.BT_Addr[i].ToString() }));
// Other Adds. See full example #34.
} }
|
See Also
Device.BtGetPairingCount (Method), Device.BTPair (Sub-Class), Example #034.
Copyright © Datalogic ADC. All Right Reserved