Komut
disconnect()
Açıklama
Bağlıysa BLE cihazının bağlantısını kesin
Sözdizimi
bleDevice.disconnect ()
Parametreler
Yok
İadeler
BLE cihazının bağlantısı kesilirse true , aksi takdirde false olur .
Misal
…
// listen for BLE centrals to connect:
BLEDevice central = BLE.central();
// …
central.disconnect();
…
// listen for BLE centrals to connect:
BLEDevice central = BLE.central();
// …
central.disconnect();
…
See Also
- discoverAttributes()
- discoverService()
- deviceName()
- appearance()
- serviceCount()
- hasService()
- service()
- characteristicCount()
- hasCharacteristic()