Example #1
0
    void onBluetoothGattDescriptionWrite(MLBluetoothLE.Descriptor descriptor, MLBluetoothLE.Status status)
    {
        print("------------onBluetoothGattDescriptorWrite");
        // MLBluetoothLE.EnableCharacteristicNotification(characteristic, true);
        // MLBluetoothLE.OnBluetoothGattRemoteCharacteristicChanged += onCharacteristicChanged;
        MLBluetoothLE.EnableCharacteristicNotification(characteristic, true);

        printDescriptorInfo(descriptor);
        printCharacteristicInfo();

        MLBluetoothLE.ReadCharacteristic(ref characteristic);
    }
Example #2
0
 private void printDescriptorInfo(MLBluetoothLE.Descriptor descriptor)
 {
     print("Descriptor Info. UUID: " + descriptor.Uuid);
     print("Descritor Buffer Size: " + descriptor.Buffer.Length);
     print("Descritor Buffer: " + string.Join(", ", descriptor.Buffer));
 }