GattCharacteristic.ConvertShortIdToUuid(UInt16) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a Bluetooth SIG defined short Id to a full GATT UUID.
Important
The ConvertShortIdToUuid API is deprecated, and it may not be available in future versions of Windows. Instead, use BluetoothUuidHelper.FromShortId.
public:
static Platform::Guid ConvertShortIdToUuid(unsigned short shortId);
static winrt::guid ConvertShortIdToUuid(uint16_t const& shortId);
/// [Windows.Foundation.Metadata.Deprecated("Use BluetoothUuidHelper instead of ConvertShortIdToUuid. For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
static winrt::guid ConvertShortIdToUuid(uint16_t const& shortId);
public static Guid ConvertShortIdToUuid(ushort shortId);
[Windows.Foundation.Metadata.Deprecated("Use BluetoothUuidHelper instead of ConvertShortIdToUuid. For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static Guid ConvertShortIdToUuid(ushort shortId);
function convertShortIdToUuid(shortId)
Public Shared Function ConvertShortIdToUuid (shortId As UShort) As Guid
Parameters
- shortId
-
UInt16
unsigned short
uint16_t
A 16-bit Bluetooth GATT Service UUID.
Returns
The corresponding 128-bit GATT Characteristic UUID, that uniquely identifies this characteristic.
- Attributes
Windows requirements
App capabilities |
bluetooth
|