Permalink
Browse files

alpha NuGet release

  • Loading branch information...
peterfoot committed Sep 4, 2017
1 parent 63f682e commit 272f4cd12d3daf31629fd2daf24a8fc45ba115cb
Showing with 3,069 additions and 98 deletions.
  1. +1 −0 .gitignore
  2. +3 −2 ....Devices.Bluetooth/InTheHand.Devices.Bluetooth.Android/InTheHand.Devices.Bluetooth.Android.csproj
  3. +322 −0 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.UWP/InTheHand.Devices.Bluetooth.UWP.csproj
  4. +29 −0 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.UWP/Properties/AssemblyInfo.cs
  5. +33 −0 ...vices.Bluetooth/InTheHand.Devices.Bluetooth.UWP/Properties/InTheHand.Devices.Bluetooth.UWP.rd.xml
  6. +7 −5 ...Hand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.Win32/InTheHand.Devices.Bluetooth.Win32.csproj
  7. +4 −3 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.iOS/InTheHand.Devices.Bluetooth.iOS.csproj
  8. +73 −1 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.sln
  9. +2 −1 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth/Bluetooth/BluetoothAdapter.uwp.cs
  10. +1 −1 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth/Bluetooth/BluetoothClassOfDevice.cs
  11. +0 −85 ...ooth/InTheHand.Devices.Bluetooth/Bluetooth/GenericAttributeProfile/GattPresentationFormatTypes.cs
  12. +17 −0 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth/Enumeration/DeviceWatcher.UWP.cs
  13. +6 −0 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.csproj
  14. +2,532 −0 InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth/InTheHand.Devices.Bluetooth.xml
  15. +39 −0 InTheHand.Devices.Bluetooth/NuGet/InTheHand.Devices.Bluetooth.4.0.1709.04-alpha2.nuspec
View
@@ -251,3 +251,4 @@ paket-files/
.idea/
*.sln.iml
/Widcomm
/InTheHand.Devices.Bluetooth/NuGet/lib
@@ -9,7 +9,7 @@
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InTheHand.Devices.Bluetooth.Android</RootNamespace>
<RootNamespace>InTheHand.Devices.Bluetooth</RootNamespace>
<AssemblyName>InTheHand.Devices.Bluetooth.Android</AssemblyName>
<FileAlignment>512</FileAlignment>
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
@@ -29,10 +29,11 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\NuGet\lib\monoandroid\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\NuGet\lib\monoandroid\InTheHand.Devices.Bluetooth.Android.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,29 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("InTheHand.Devices.Bluetooth.UWP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InTheHand.Devices.Bluetooth.UWP")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ComVisible(false)]
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains Runtime Directives, specifications about types your application accesses
through reflection and other dynamic code patterns. Runtime Directives are used to control the
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
library does not do any reflection, then you generally do not need to edit this file. However,
if your library reflects over types, especially types passed to it or derived from its types,
then you should write Runtime Directives.
The most common use of reflection in libraries is to discover information about types passed
to the library. Runtime Directives have three ways to express requirements on types passed to
your library.
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
Use these directives to reflect over types passed as a parameter.
2. SubTypes
Use a SubTypes directive to reflect over types derived from another type.
3. AttributeImplies
Use an AttributeImplies directive to indicate that your library needs to reflect over
types or methods decorated with an attribute.
For more information on writing Runtime Directives for libraries, please visit
https://go.microsoft.com/fwlink/?LinkID=391919
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="InTheHand.Devices.Bluetooth.UWP">
<!-- add directives for your library here -->
</Library>
</Directives>
@@ -7,8 +7,8 @@
<ProjectGuid>{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InTheHand.Devices.Bluetooth.Win32</RootNamespace>
<AssemblyName>InTheHand.Devices.Bluetooth.Win32</AssemblyName>
<RootNamespace>InTheHand.Devices.Bluetooth</RootNamespace>
<AssemblyName>InTheHand.Devices.Bluetooth</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
@@ -17,17 +17,19 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE;DEBUG;WIN32</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\InTheHand.Devices.Bluetooth.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<OutputPath>..\NuGet\lib\net461\</OutputPath>
<DefineConstants>TRACE;WIN32</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\NuGet\lib\net461\InTheHand.Devices.Bluetooth.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -8,9 +8,9 @@
<ProjectGuid>{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>InTheHand.Devices.Bluetooth.iOS</RootNamespace>
<RootNamespace>InTheHand.Devices.Bluetooth</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>InTheHand.Devices.Bluetooth.iOS</AssemblyName>
<AssemblyName>InTheHand.Devices.Bluetooth</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -25,10 +25,11 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<OutputPath>..\NuGet\lib\xamarinios\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>..\NuGet\lib\xamarinios\InTheHand.Devices.Bluetooth.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
VisualStudioVersion = 15.0.26730.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InTheHand.Devices.Bluetooth", "InTheHand.Devices.Bluetooth\InTheHand.Devices.Bluetooth.csproj", "{D7C44908-581A-4523-91EC-4079B20E34C7}"
EndProject
@@ -11,28 +11,100 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InTheHand.Devices.Bluetooth
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InTheHand.Devices.Bluetooth.iOS", "InTheHand.Devices.Bluetooth.iOS\InTheHand.Devices.Bluetooth.iOS.csproj", "{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InTheHand.Devices.Bluetooth.UWP", "InTheHand.Devices.Bluetooth.UWP\InTheHand.Devices.Bluetooth.UWP.csproj", "{FDAFE908-FF81-43F4-94C0-A403D6A453B2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|ARM.Build.0 = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|x64.ActiveCfg = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|x64.Build.0 = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|x86.ActiveCfg = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Debug|x86.Build.0 = Debug|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|Any CPU.Build.0 = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|ARM.ActiveCfg = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|ARM.Build.0 = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|x64.ActiveCfg = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|x64.Build.0 = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|x86.ActiveCfg = Release|Any CPU
{D7C44908-581A-4523-91EC-4079B20E34C7}.Release|x86.Build.0 = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|ARM.ActiveCfg = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|ARM.Build.0 = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|x64.ActiveCfg = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|x64.Build.0 = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|x86.ActiveCfg = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Debug|x86.Build.0 = Debug|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|Any CPU.Build.0 = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|ARM.ActiveCfg = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|ARM.Build.0 = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|x64.ActiveCfg = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|x64.Build.0 = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|x86.ActiveCfg = Release|Any CPU
{15851D1E-6757-49EA-9A28-BEBAF5C9A3E0}.Release|x86.Build.0 = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|ARM.ActiveCfg = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|ARM.Build.0 = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|x64.ActiveCfg = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|x64.Build.0 = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|x86.ActiveCfg = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Debug|x86.Build.0 = Debug|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|Any CPU.Build.0 = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|ARM.ActiveCfg = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|ARM.Build.0 = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|x64.ActiveCfg = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|x64.Build.0 = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|x86.ActiveCfg = Release|Any CPU
{37A94CE9-B217-4226-82F6-110EC34DA0DA}.Release|x86.Build.0 = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|ARM.ActiveCfg = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|ARM.Build.0 = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|x64.ActiveCfg = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|x64.Build.0 = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|x86.ActiveCfg = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Debug|x86.Build.0 = Debug|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|Any CPU.Build.0 = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|ARM.ActiveCfg = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|ARM.Build.0 = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|x64.ActiveCfg = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|x64.Build.0 = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|x86.ActiveCfg = Release|Any CPU
{33149B35-24E1-4F2D-9B8B-1FC89A894DD2}.Release|x86.Build.0 = Release|Any CPU
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|ARM.ActiveCfg = Debug|ARM
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|ARM.Build.0 = Debug|ARM
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|x64.ActiveCfg = Debug|x64
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|x64.Build.0 = Debug|x64
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|x86.ActiveCfg = Debug|x86
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Debug|x86.Build.0 = Debug|x86
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|Any CPU.Build.0 = Release|Any CPU
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|ARM.ActiveCfg = Release|ARM
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|ARM.Build.0 = Release|ARM
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|x64.ActiveCfg = Release|x64
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|x64.Build.0 = Release|x64
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|x86.ActiveCfg = Release|x86
{FDAFE908-FF81-43F4-94C0-A403D6A453B2}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -1,10 +1,11 @@
//-----------------------------------------------------------------------
// <copyright file="BluetoothAdapter.uwp.cs" company="In The Hand Ltd">
// <copyright file="BluetoothAdapter.UWP.cs" company="In The Hand Ltd">
// Copyright (c) 2017 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License - see License.txt
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Threading.Tasks;
namespace InTheHand.Devices.Bluetooth
@@ -171,7 +171,7 @@ public override string ToString()
return majorClassName;
}
#if WINDOWS_PHONE_APP
#if WINDOWS_PHONE_APP || NETSTANDARD1_4
foreach (FieldInfo fi in typeof(BluetoothMinorClass).GetRuntimeFields())
#else
foreach (FieldInfo fi in typeof(BluetoothMinorClass).GetFields())
@@ -42,89 +42,4 @@ public enum GattPresentationFormatTypes : byte
Utf16 = 26,
Struct = 27,
}
#if __UNIFIED__
internal static class GattCharacteristicPropertiesHelper
{
public static GattCharacteristicProperties ToGattCharacteristicProperties(this CoreBluetooth.CBCharacteristicProperties value)
{
GattCharacteristicProperties p = GattCharacteristicProperties.None;
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.AuthenticatedSignedWrites))
{
p |= GattCharacteristicProperties.AuthenticatedSignedWrites;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.Broadcast))
{
p |= GattCharacteristicProperties.Broadcast;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.ExtendedProperties))
{
p |= GattCharacteristicProperties.ExtendedProperties;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.Indicate))
{
p |= GattCharacteristicProperties.Indicate;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.Notify))
{
p |= GattCharacteristicProperties.Notify;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.Read))
{
p |= GattCharacteristicProperties.Read;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.Write))
{
p |= GattCharacteristicProperties.Write;
}
if (value.HasFlag(CoreBluetooth.CBCharacteristicProperties.WriteWithoutResponse))
{
p |= GattCharacteristicProperties.WriteWithoutResponse;
}
return p;
}
public static CoreBluetooth.CBCharacteristicProperties ToCBCharacteristicProperties(this GattCharacteristicProperties value)
{
CoreBluetooth.CBCharacteristicProperties p = (CoreBluetooth.CBCharacteristicProperties)0;
if(value.HasFlag(GattCharacteristicProperties.AuthenticatedSignedWrites))
{
p |= CoreBluetooth.CBCharacteristicProperties.AuthenticatedSignedWrites;
}
if (value.HasFlag(GattCharacteristicProperties.Broadcast))
{
p |= CoreBluetooth.CBCharacteristicProperties.Broadcast;
}
if (value.HasFlag(GattCharacteristicProperties.ExtendedProperties))
{
p |= CoreBluetooth.CBCharacteristicProperties.ExtendedProperties;
}
if (value.HasFlag(GattCharacteristicProperties.Indicate))
{
p |= CoreBluetooth.CBCharacteristicProperties.Indicate;
}
if (value.HasFlag(GattCharacteristicProperties.Notify))
{
p |= CoreBluetooth.CBCharacteristicProperties.Notify;
}
if (value.HasFlag(GattCharacteristicProperties.Read))
{
p |= CoreBluetooth.CBCharacteristicProperties.Read;
}
if (value.HasFlag(GattCharacteristicProperties.Write))
{
p |= CoreBluetooth.CBCharacteristicProperties.Write;
}
if (value.HasFlag(GattCharacteristicProperties.WriteWithoutResponse))
{
p |= CoreBluetooth.CBCharacteristicProperties.WriteWithoutResponse;
}
return p;
}
}
#endif
}
@@ -0,0 +1,17 @@
//-----------------------------------------------------------------------
// <copyright file="DeviceWatcher.UWP.cs" company="In The Hand Ltd">
// Copyright (c) 2017 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License - see License.txt
// </copyright>
//-----------------------------------------------------------------------
namespace InTheHand.Devices.Enumeration
{
partial class DeviceWatcher
{
private DeviceWatcherStatus GetStatus()
{
return DeviceWatcherStatus.Created;
}
}
}
Oops, something went wrong.

0 comments on commit 272f4cd

Please sign in to comment.