bluetoothstandardservices.cs

来自「老外的一个开源项目」· CS 代码 · 共 45 行

CS
45
字号
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c)  Microsoft Corporation.  All rights reserved.
//
//
// This source code is licensed under Microsoft Shared Source License
// Version 1.0 for Windows CE.
// For a copy of the license visit http://go.microsoft.com/?linkid=2933443.
//

#region Using directives

using System;

#endregion

namespace Gumstix.Bluetooth 
{
	/// <summary>
	/// Lists GUIDs for standard Bluetooth services
	/// </summary>
	public static class StandardServices
	{
		/// <summary>
		/// Guid representing the Serial Port Profile
		/// </summary>
		static public Guid SerialPortServiceGuid
		{
			get
			{
				if (serialPortServiceGuid == Guid.Empty)
				{
					serialPortServiceGuid = new Guid(0x00001101, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
				}

				return serialPortServiceGuid;
			}
		}

		private static Guid serialPortServiceGuid = Guid.Empty;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?