关于GATT服务 [英] About GATT services
问题描述
你好,
我使用windows metro app样本经过几周的试验和错误后设法进入设备,现在的诀窍是当我发出这一行时,我看不到它的服务:
I've managed to get into the device after a couple of weeks of trial and error using the windows metro app sample, now the trick is that I can't see its services, when I issue the line:
hrmService = device.services [0];
hrmService = device.services[0];
索引是非事实上,存在变量设备几乎是一个空对象。
The index is non-existent, in fact, the variable device is pretty much an empty object.
我不确定我是否必须在C ++方面做任何事情?
I'm not sure if I have to do anything on the C++ side ?
如果我可以帮助任何人了解我如何访问该设备,我很高兴发布我的步骤。
If I can help anybody on how I got access to the device, I'm pretty happy to publish my steps.
任何帮助将不胜感激。
谢谢!
推荐答案
当我忘记在应用清单中声明适当的功能时,我会看到这种行为。
I see this behavior when I forget to declare the proper capabilities in the app manifest.
VS中的GUI没有设置这些功能的选项。 请参阅此文章,了解如何直接在XML中声明功能: http://msdn.microsoft.com/en-us/library/windows/apps/dn263090.aspx
The GUI in VS doesn't have the options for settings these capabilities. See this article on how to declare the capabilities directly in XML: http://msdn.microsoft.com/en-us/library/windows/apps/dn263090.aspx
这篇关于关于GATT服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!