您好!
我正在 基于 SimplePeripheral 的项目中使用 gapbondmgr。 我想知道如何在启动后从 SNV 中检索绑定列表。 我看到 gapbondmgr.h 没有用于检索绑定列表的 API。 请就此向我提供帮助。
此致、
Madhudhan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
我正在 基于 SimplePeripheral 的项目中使用 gapbondmgr。 我想知道如何在启动后从 SNV 中检索绑定列表。 我看到 gapbondmgr.h 没有用于检索绑定列表的 API。 请就此向我提供帮助。
此致、
Madhudhan
大家好、Madhusudhan、
我建议参考用户指南中显示如何 提取定色信息的部分(此处)。
我希望这将有所帮助、
此致、
您好!
您可以跟踪相关器件的地址(由 simple_peripheral 和 simple_central 完成)、然后调用建议的 API。
否则、有一种方法可以访问 RAM 影子化绑定记录。 在 gapbondmgr.c 中、您将找到表 bonds:
// Local RAM shadowed bond records static gapBondRec_t *bonds = NULL; //will hold gapBond_maxBonds elements
您可以读取这段存储器的内容(但不能修改)。
我希望这将有所帮助、
此致、