Git Product home page Git Product logo

Comments (7)

lizhongze123 avatar lizhongze123 commented on August 28, 2024 1

这代码里面的是你startNotify之后,这里的onSuccess回调只是接收到notify的成功回调,不是设置之后成功的回调,如果你是要设置成功之后的回调,需要你自己重写一下handleCharacteristicNotificationCallback这个方法里的onDescriptorWrite这个方法的,不知道你问的是不是这个问题。才疏学浅,莫怪。

from fastble.

lioulei1317 avatar lioulei1317 commented on August 28, 2024

@lizhongze123 我要的就是接收仪器返回的notify,service的uuid和characteristic的uuid确定都是对的,在我的项目中是可用的,而且刚开始运行项目是有返回值的,后来用就一直不返回了

from fastble.

lizhongze123 avatar lizhongze123 commented on August 28, 2024

这个很难判断错误在哪里。或者你用其他蓝牙工具看可不可以接收到,如果可以,那就不是UUID的问题了,那你就要看看你的代码了

from fastble.

lioulei1317 avatar lioulei1317 commented on August 28, 2024

@lizhongze123 好的,谢谢,我再看看

from fastble.

lioulei1317 avatar lioulei1317 commented on August 28, 2024

@lizhongze123 上次的问题解决了,遇到新的问题,如果需要连续监听多个notify的uuid,该怎么做?

from fastble.

androidxu avatar androidxu commented on August 28, 2024

@lioulei1317 请问你是怎么解决的?

from fastble.

lioulei1317 avatar lioulei1317 commented on August 28, 2024

@androidxu 要有一个时间间隔,我是监听和写入隔了100ms,如果写在一起不间隔就不返回

from fastble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.