We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
项目中是如何确定监听的服务和特征订阅类型的?
The text was updated successfully, but these errors were encountered:
_getCharacteristics这个函数获取特征值,_notifyBLECharacteristicValueChange进行订阅,如果你想问的是如何确定serviceId,那么有两种方式, 1.如我项目这样,serviceId是硬件设备提供的唯一编码,可以提前写进代码里面; 2.如果serviceId不确定,你可以用deviceId在_onBluetoothFound_promise函数中嗅探设备时,遍历设备服务数组,里面会有一个服务拥有主key(isPrimary:true),相应的serviceId就是你所需要的。
Sorry, something went wrong.
No branches or pull requests
项目中是如何确定监听的服务和特征订阅类型的?
The text was updated successfully, but these errors were encountered: