gpt4 book ai didi

objective-c - 从 Mac 发现 RN4020 BLE 服务

转载 作者:搜寻专家 更新时间:2023-10-30 20:17:13 24 4
gpt4 key购买 nike

我想我误解了私有(private)服务的概念。我有一个使用 Apple CoreBluetooth 的程序,似乎发现服务一切正常:

Found Characteristic 'Appearence' for service 'Generic Access Profile' 
Found Characteristic 'Peripheral Preferred Connection Parameters' for service 'Generic Access Profile'
Found Characteristic 'Serial Number String' for service 'Device Information'
Found Characteristic 'Hardware Revision String' for service 'Device Information'
Found Characteristic 'Firmware Revision String' for service 'Device Information'
Found Characteristic 'Software Revision String' for service 'Device Information'
Found Characteristic 'Manufacturer Name String' for service 'Device Information'
Found Characteristic 'Model Number String' for service 'Device Information'
Found Characteristic 'Battery Level' for service 'Battery'

然后我在 RN4020 中设置私有(private)服务和特征,所以当我在终端中输入 LS 时,我可以看到它们:

123456789012345678901234567890FF
12345678901234567890123456789011,000B,02,01
12345678901234567890123456789011,000C,10,02
12345678901234567890123456789022,000E,02,02

然后我开始广告,重新启动...但是我无法从我的应用程序中看到此服务(?)。是因为他们是私有(private)的?那么我怎样才能让它公开呢?当我键入 LS 时,我不应该在终端中看到所有这些服务(电池、设备信息和通用访问配置文件)吗????

谢谢!

最佳答案

我不确定具体的 MAC,但我在 Android 中遇到了类似的问题,远程设备必须从 android 内存中清除,然后才能显示新的服务/特性

关于objective-c - 从 Mac 发现 RN4020 BLE 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25691187/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com