├── .gitattributes ├── .gitignore ├── BluetoothBeyondBeacons ├── README.md └── cs │ ├── BeyondBeacons.csproj │ ├── BeyondBeacons.sln │ ├── Package.appxmanifest │ ├── SampleConfiguration.cs │ ├── Scenario1_BeaconProximity.xaml │ ├── Scenario1_BeaconProximity.xaml.cs │ ├── Tasks │ ├── AdvertisementWatcherTask.cs │ ├── BackgroundTasks.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json │ └── project.json ├── BluetoothInAppGATT ├── README.md └── cs │ ├── BluetoothInAppGATT.csproj │ ├── BluetoothInAppGATT.sln │ ├── Package.appxmanifest │ ├── SampleConfiguration.cs │ ├── Scenario1_InAppGATT.xaml │ ├── Scenario1_InAppGATT.xaml.cs │ └── project.json ├── BuildQuickStart ├── BtAvatar │ └── BtAvatar │ │ ├── BtAvatar.sln │ │ └── BtAvatar │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ │ ├── BtAvatar.csproj │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── Package.appxmanifest │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ │ └── project.json ├── BtSensor │ ├── AvatarSensor.sln │ └── AvatarSensor │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ │ ├── AvatarSensor.csproj │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── Package.appxmanifest │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ │ └── project.json └── README.md ├── README.md └── SharedContent ├── cs ├── App.xaml.cs ├── AssemblyInfo.cs ├── Default.rd.xml ├── Library.rd.xml ├── MainPage.xaml └── MainPage.xaml.cs ├── media ├── microsoft-sdk.png ├── placeholder-sdk.png ├── smalltile-sdk.png ├── splash-sdk.png ├── squaretile-sdk.png ├── storelogo-sdk.png ├── storelogo-sdk.scale-100.png ├── tile-sdk.png └── windows-sdk.png └── xaml ├── App.xaml └── Styles.xaml /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | [Gg]enerated Files/ 19 | x64/ 20 | x86/ 21 | build/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | 26 | # Visual Studo 2015 cache/options directory 27 | .vs/ 28 | 29 | # MSTest test Results 30 | [Tt]est[Rr]esult*/ 31 | [Bb]uild[Ll]og.* 32 | 33 | # NUNIT 34 | *.VisualState.xml 35 | TestResult.xml 36 | 37 | # Build Results of an ATL Project 38 | [Dd]ebugPS/ 39 | [Rr]eleasePS/ 40 | dlldata.c 41 | 42 | *_i.c 43 | *_p.c 44 | *_i.h 45 | *.ilk 46 | *.meta 47 | *.obj 48 | *.pch 49 | *.pdb 50 | *.pgc 51 | *.pgd 52 | *.rsp 53 | *.sbr 54 | *.tlb 55 | *.tli 56 | *.tlh 57 | *.tmp 58 | *.tmp_proj 59 | *.log 60 | *.vspscc 61 | *.vssscc 62 | .builds 63 | *.pidb 64 | *.svclog 65 | *.scc 66 | 67 | # Chutzpah Test files 68 | _Chutzpah* 69 | 70 | # Visual C++ cache files 71 | ipch/ 72 | *.aps 73 | *.ncb 74 | *.opensdf 75 | *.sdf 76 | *.cachefile 77 | 78 | # Visual Studio profiler 79 | *.psess 80 | *.vsp 81 | *.vspx 82 | 83 | # TFS 2012 Local Workspace 84 | $tf/ 85 | 86 | # Guidance Automation Toolkit 87 | *.gpState 88 | 89 | # ReSharper is a .NET coding add-in 90 | _ReSharper*/ 91 | *.[Rr]e[Ss]harper 92 | *.DotSettings.user 93 | 94 | # JustCode is a .NET coding addin-in 95 | .JustCode 96 | 97 | # TeamCity is a build add-in 98 | _TeamCity* 99 | 100 | # DotCover is a Code Coverage Tool 101 | *.dotCover 102 | 103 | # NCrunch 104 | _NCrunch_* 105 | .*crunch*.local.xml 106 | 107 | # MightyMoose 108 | *.mm.* 109 | AutoTest.Net/ 110 | 111 | # Web workbench (sass) 112 | .sass-cache/ 113 | 114 | # Installshield output folder 115 | [Ee]xpress/ 116 | 117 | # DocProject is a documentation generator add-in 118 | DocProject/buildhelp/ 119 | DocProject/Help/*.HxT 120 | DocProject/Help/*.HxC 121 | DocProject/Help/*.hhc 122 | DocProject/Help/*.hhk 123 | DocProject/Help/*.hhp 124 | DocProject/Help/Html2 125 | DocProject/Help/html 126 | 127 | # Click-Once directory 128 | publish/ 129 | 130 | # Publish Web Output 131 | *.[Pp]ublish.xml 132 | *.azurePubxml 133 | # TODO: Comment the next line if you want to checkin your web deploy settings 134 | # but database connection strings (with potential passwords) will be unencrypted 135 | *.pubxml 136 | *.publishproj 137 | 138 | # NuGet Packages 139 | *.nupkg 140 | # The packages folder can be ignored because of Package Restore 141 | **/packages/* 142 | # except build/, which is used as an MSBuild target. 143 | !**/packages/build/ 144 | # Uncomment if necessary however generally it will be regenerated when needed 145 | #!**/packages/repositories.config 146 | 147 | # Windows Azure Build Output 148 | csx/ 149 | *.build.csdef 150 | 151 | # Windows Store app package directory 152 | AppPackages/ 153 | 154 | # Others 155 | *.[Cc]ache 156 | ClientBin/ 157 | [Ss]tyle[Cc]op.* 158 | ~$* 159 | *~ 160 | *.dbmdl 161 | *.dbproj.schemaview 162 | *.pfx 163 | *.publishsettings 164 | node_modules/ 165 | bower_components/ 166 | 167 | # RIA/Silverlight projects 168 | Generated_Code/ 169 | 170 | # Backup & report files from converting an old project file 171 | # to a newer Visual Studio version. Backup files are not needed, 172 | # because we have git ;-) 173 | _UpgradeReport_Files/ 174 | Backup*/ 175 | UpgradeLog*.XML 176 | UpgradeLog*.htm 177 | 178 | # SQL Server files 179 | *.mdf 180 | *.ldf 181 | 182 | # Business Intelligence projects 183 | *.rdl.data 184 | *.bim.layout 185 | *.bim_*.settings 186 | 187 | # Microsoft Fakes 188 | FakesAssemblies/ 189 | 190 | # Node.js Tools for Visual Studio 191 | .ntvs_analysis.dat 192 | 193 | # Visual Studio 6 build log 194 | *.plg 195 | 196 | # Visual Studio 6 workspace options file 197 | *.opt 198 | 199 | # Custom ignores 200 | gallery.xml 201 | project.lock.json 202 | 203 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/README.md: -------------------------------------------------------------------------------- 1 | # Bluetooth Beyond Beacons 2 | Code sample for Bluetooth Beyond Beacon: https://channel9.msdn.com/events/Build/2016/P416 3 | 4 | ## Run the sample 5 | 6 | The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it. 7 | 8 | ### Deploying the sample 9 | 10 | - Select Build > Deploy Solution. 11 | 12 | ### Deploying and running the sample 13 | 14 | - To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. 15 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/cs/BeyondBeacons.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F} 8 | AppContainerExe 9 | Properties 10 | SDKTemplate 11 | BluetoothRfcommChat 12 | en-US 13 | UAP 14 | 10.0.14267.0 15 | 10.0.10240.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | true 21 | True 22 | arm 23 | 24 | 25 | true 26 | bin\ARM\Debug\ 27 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP 28 | ;2008 29 | full 30 | ARM 31 | false 32 | prompt 33 | true 34 | 35 | 36 | bin\ARM\Release\ 37 | TRACE;NETFX_CORE;WINDOWS_UAP 38 | true 39 | ;2008 40 | pdbonly 41 | ARM 42 | false 43 | prompt 44 | true 45 | true 46 | 47 | 48 | true 49 | bin\x64\Debug\ 50 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP 51 | ;2008 52 | full 53 | x64 54 | false 55 | prompt 56 | true 57 | 58 | 59 | bin\x64\Release\ 60 | TRACE;NETFX_CORE;WINDOWS_UAP 61 | true 62 | ;2008 63 | pdbonly 64 | x64 65 | false 66 | prompt 67 | true 68 | true 69 | 70 | 71 | true 72 | bin\x86\Debug\ 73 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UAP 74 | ;2008 75 | full 76 | x86 77 | false 78 | prompt 79 | true 80 | 81 | 82 | bin\x86\Release\ 83 | TRACE;NETFX_CORE;WINDOWS_UAP 84 | true 85 | ;2008 86 | pdbonly 87 | x86 88 | false 89 | prompt 90 | true 91 | true 92 | 93 | 94 | 95 | App.xaml.cs 96 | App.xaml 97 | 98 | 99 | MainPage.xaml.cs 100 | MainPage.xaml 101 | 102 | 103 | Properties\AssemblyInfo.cs 104 | 105 | 106 | 107 | Scenario1_BeaconProximity.xaml 108 | 109 | 110 | 111 | 112 | Designer 113 | 114 | 115 | 116 | 117 | App.xaml 118 | MSBuild:Compile 119 | Designer 120 | 121 | 122 | MainPage.xaml 123 | MSBuild:Compile 124 | Designer 125 | 126 | 127 | MSBuild:Compile 128 | Designer 129 | 130 | 131 | Styles\Styles.xaml 132 | MSBuild:Compile 133 | Designer 134 | 135 | 136 | 137 | 138 | {13331b5b-97d7-4290-a230-67baeae415c5} 139 | BackgroundTasks 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | Assets\microsoft-sdk.png 148 | 149 | 150 | Assets\placeholder-sdk.png 151 | 152 | 153 | Assets\smalltile-sdk.png 154 | 155 | 156 | Assets\splash-sdk.png 157 | 158 | 159 | Assets\squaretile-sdk.png 160 | 161 | 162 | Assets\storelogo-sdk.png 163 | 164 | 165 | Assets\tile-sdk.png 166 | 167 | 168 | Assets\windows-sdk.png 169 | 170 | 171 | 172 | 14.0 173 | 174 | 175 | 182 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/cs/BeyondBeacons.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeyondBeacons", "BeyondBeacons.csproj", "{DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BackgroundTasks", "Tasks\BackgroundTasks.csproj", "{13331B5B-97D7-4290-A230-67BAEAE415C5}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|ARM = Debug|ARM 13 | Debug|x64 = Debug|x64 14 | Debug|x86 = Debug|x86 15 | Release|ARM = Release|ARM 16 | Release|x64 = Release|x64 17 | Release|x86 = Release|x86 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.ActiveCfg = Debug|ARM 21 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.Build.0 = Debug|ARM 22 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|ARM.Deploy.0 = Debug|ARM 23 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.ActiveCfg = Debug|x64 24 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.Build.0 = Debug|x64 25 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x64.Deploy.0 = Debug|x64 26 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.ActiveCfg = Debug|x86 27 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.Build.0 = Debug|x86 28 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Debug|x86.Deploy.0 = Debug|x86 29 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.ActiveCfg = Release|ARM 30 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.Build.0 = Release|ARM 31 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|ARM.Deploy.0 = Release|ARM 32 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.ActiveCfg = Release|x64 33 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.Build.0 = Release|x64 34 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x64.Deploy.0 = Release|x64 35 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.ActiveCfg = Release|x86 36 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.Build.0 = Release|x86 37 | {DC30CE66-DAEE-4CCF-BD02-8837FE918B6F}.Release|x86.Deploy.0 = Release|x86 38 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|ARM.ActiveCfg = Debug|ARM 39 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|ARM.Build.0 = Debug|ARM 40 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|x64.ActiveCfg = Debug|x64 41 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|x64.Build.0 = Debug|x64 42 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|x86.ActiveCfg = Debug|x86 43 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Debug|x86.Build.0 = Debug|x86 44 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|ARM.ActiveCfg = Release|ARM 45 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|ARM.Build.0 = Release|ARM 46 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|x64.ActiveCfg = Release|x64 47 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|x64.Build.0 = Release|x64 48 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|x86.ActiveCfg = Release|x86 49 | {13331B5B-97D7-4290-A230-67BAEAE415C5}.Release|x86.Build.0 = Release|x86 50 | EndGlobalSection 51 | GlobalSection(SolutionProperties) = preSolution 52 | HideSolutionNode = FALSE 53 | EndGlobalSection 54 | EndGlobal 55 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/cs/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | BeyondBeacons 7 | Microsoft Corporation 8 | Assets\StoreLogo-sdk.png 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/cs/SampleConfiguration.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using Windows.UI.Xaml.Controls; 15 | 16 | namespace SDKTemplate 17 | { 18 | public partial class MainPage : Page 19 | { 20 | public const string FEATURE_NAME = "Bluetooth Beyond Beacons"; 21 | 22 | List scenarios = new List 23 | { 24 | new Scenario() 25 | { 26 | Title = "Beacon Proximity", 27 | ClassType = typeof(Scenario1_BeaconProximity) 28 | }, 29 | }; 30 | } 31 | 32 | public class Scenario 33 | { 34 | public string Title { get; set; } 35 | public Type ClassType { get; set; } 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /BluetoothBeyondBeacons/cs/Scenario1_BeaconProximity.xaml: -------------------------------------------------------------------------------- 1 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |