我有一个像这样的 AllJoyn 属性
<property name="DeviceAddresses" type="ay" access="read">
当我尝试阅读它时,我是一个 Windows 10 UWP 应用程序 - 我获得了成功 - 但我不知道如何从结果中获取值代码如下所示:
var vProperty = pInterface.GetProperty(propertyName);
if (vProperty == null) return null;
var result = await vProperty.ReadValueAsync();
if (result.Status.IsSuccess)
{
if (vProperty.TypeInfo.Type == TypeId.Uint8Array)
{
byte[] Erg = result.Value ???
}
}
属性值是通过创建的
object o = Windows.Foundation.PropertyValue.CreateUInt8Array(value);
但我发现没有办法(铸造左右)获取字节。