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); }
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)); }