Ejemplo n.º 1
0
        public GattService(GattID uuid, params GattCharacteristic[] characteristics)
        {
            UUID            = uuid;
            Characteristics = characteristics ?? new GattCharacteristic[0];

            for (int i = 0; i < Characteristics.Length; i++)
            {
                Characteristics[i].Index = i;
            }
        }
Ejemplo n.º 2
0
 public GattCharacteristic(string name, GattID uuid, SigAttributeProperties properties)
 {
     Name       = name;
     UUID       = uuid;
     Properties = properties;
 }
Ejemplo n.º 3
0
 public TimeCharacteristic(string name, DateTime value, GattID uuid, SigAttributeProperties properties) : base(name, uuid, properties)
 {
     this.value = value;
 }