-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConstants.cs
41 lines (36 loc) · 2.19 KB
/
Constants.cs
1
2
3
4
5
6
7
8
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
39
40
41
using System;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
namespace SDKTemplate
{
// Define the characteristics and other properties of our custom service.
public class Constants
{
// BT_Code: Initializes custom local parameters w/ properties, protection levels as well as common descriptors like User Description.
public static readonly GattLocalCharacteristicParameters gattOperandParameters = new GattLocalCharacteristicParameters
{
CharacteristicProperties = GattCharacteristicProperties.Write |
GattCharacteristicProperties.WriteWithoutResponse,
WriteProtectionLevel = GattProtectionLevel.Plain,
UserDescription = "Operand Characteristic"
};
public static readonly GattLocalCharacteristicParameters gattOperatorParameters = new GattLocalCharacteristicParameters
{
CharacteristicProperties = GattCharacteristicProperties.Write |
GattCharacteristicProperties.WriteWithoutResponse,
WriteProtectionLevel = GattProtectionLevel.Plain,
UserDescription = "Operator Characteristic"
};
public static readonly GattLocalCharacteristicParameters gattResultParameters = new GattLocalCharacteristicParameters
{
CharacteristicProperties = GattCharacteristicProperties.Read |
GattCharacteristicProperties.Notify,
WriteProtectionLevel = GattProtectionLevel.Plain,
UserDescription = "Result Characteristic"
};
public static readonly Guid CalcServiceUuid = Guid.Parse("caecface-e1d9-11e6-bf01-fe55135034f0");
public static readonly Guid Op1CharacteristicUuid = Guid.Parse("caec2ebc-e1d9-11e6-bf01-fe55135034f1");
public static readonly Guid Op2CharacteristicUuid = Guid.Parse("caec2ebc-e1d9-11e6-bf01-fe55135034f2");
public static readonly Guid OperatorCharacteristicUuid = Guid.Parse("caec2ebc-e1d9-11e6-bf01-fe55135034f3");
public static readonly Guid ResultCharacteristicUuid = Guid.Parse("caec2ebc-e1d9-11e6-bf01-fe55135034f4");
};
}