Confirmed users
891
edits
| Line 210: | Line 210: | ||
; Description | ; Description | ||
: The method creates a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#BluetoothGatt|BluetoothGatt]] object | : The method does three things at once: | ||
:: 1) creates a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#BluetoothGatt|BluetoothGatt]] object and assigns it to property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#gatt|gatt]], | |||
:: 2) connects to remote LE device, and then | |||
:: 3) discover services offered by a remote device as well as their characteristics and descriptors. | |||
; Parameter | ; Parameter | ||