API version 15

BluetoothPeripheral.Disconnectメソッド

iOSAndroidWindows

 

説明

Connectメソッドで接続したBLEペリフェラル(デバイス)との接続を切断します。

 

呼出形式

peripheral.Disconnect()

 

戻り値

なし

 

引数

なし

 

例外

なし

 

使用例

BluetoothPeripheral peripheral {
	Function onCharacteristicChanged(e) {
		/*イベント処理*/
	}
}
Button btnBleConnect {
	X = 16;
	Y = 576;
	Width = 104;
	Height = 40;
	Title = "BLE 接続";
	Function OnTouch( e ) {
		//.peripheral.Connect(deviceId);
	}
};
Button btnBleDisconnect{
	X = 128;
	Y = 576;
	Width = 104;
	Height = 40;
	Title = "BLE 切断";
	Function OnTouch( e ) {
		//.peripheral.Disconnect();
	}
}

 

関連項目

Connectメソッド

 



「オンラインマニュアル」一覧へ戻る
「Bizの宝箱」TOPへ戻る