|
説明 |
ボンディング(ペアリング)済みデバイスの一覧を取得します。
|
|||||||||||||||||||||||||||||||
|
呼出形式 |
var devices = sb.GetBondedDevices()
|
|||||||||||||||||||||||||||||||
|
戻り値 |
デバイス情報を格納したRecordの配列を返します。 Recordには下記オブジェクトが含まれます。
|
|||||||||||||||||||||||||||||||
|
引数 |
なし
|
|||||||||||||||||||||||||||||||
|
例外 |
RTM-47 |
位置情報へのアクセスに失敗しました。 |
||||||||||||||||||||||||||||||
|
|
RTM-83 |
Bluetoothが有効になっていません。 |
||||||||||||||||||||||||||||||
|
|
RTM-84 |
Bluetoothの使用が許可されていません。OSの設定でBluetoothの使用を許可してください。 *1
|
||||||||||||||||||||||||||||||
|
使用例 |
SmaPriBluetooth sm;
Form form1 {
Width = 424;
Height = 320;
Button btnGetBondedDeviceList {
X = 16;
Y = 16;
Width = 120;
Height = 40;
Title = "デバイスリスト取得";
Function OnTouch( e ) {
try {
var devices = ^.sb.GetBondedDevices();
for (var i = 0; i < devices.length; i++) {
print(devices[i].DeviceId + "\n");
}
} catch(e) {
MessageBox(e.Message);
}
}
}
}
|
|||||||||||||||||||||||||||||||
|
関連項目 |
CreateBondメソッド |
|||||||||||||||||||||||||||||||