Esempio n. 1
0
        internal void TestSetString(GattService service, TextCharacteristic textCharacteristic, string value)
        {
            // Write to store
            var entry = GetValueEntry(service.Index, textCharacteristic.Index);

            entry.Value = OS.Encode(value);

            // Call Handler
            EventSink.Fire(new BluetoothEvent
            {
                EventType           = BluetoothEventType.ValueWritten,
                ServiceIndex        = service.Index,
                CharacteristicIndex = textCharacteristic.Index,
            });
        }