internal BluetoothGattServiceImpl(string uuid, BluetoothGattServiceType type)
        {
            int err = Interop.Bluetooth.BtGattServiceCreate(uuid, (int)type, out _handle);

            GattUtil.ThrowForError(err, "Failed to get native service handle");
        }
Beispiel #2
0
 /// <summary>
 /// The constructor.
 /// </summary>
 /// <param name="uuid">The UUID of the service.</param>
 /// <param name="type">The type of service.</param>
 /// <exception cref="InvalidOperationException">Thrown when the create GATT service procedure fails.</exception>
 /// <since_tizen> 3 </since_tizen>
 public BluetoothGattService(string uuid, BluetoothGattServiceType type)
 {
     Uuid  = uuid;
     _impl = new BluetoothGattServiceImpl(uuid, type);
 }