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