Giter Site home page Giter Site logo

Comments (6)

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

很多的时候,你需要维持多个callback不停监听。当不需要该callback的时候,可以将该callback移除。移除方法,详见Usgae。

from fastble.

dongweiq avatar dongweiq commented on August 23, 2024

我看代码里有断开服务的时候removeCallback的操作,但是有的时候断开直接就异常了,没有调用到removeCallback方法,所以才会导致多个callback重复回调

from fastble.

YiuChoi avatar YiuChoi commented on August 23, 2024

对啊,每连接一次就多一个

from fastble.

Sunny22100486 avatar Sunny22100486 commented on August 23, 2024

之前连接过,并且连接状态是BleManager.getInstance().isConnected() = true,但是再次扫描之后未连接任何设备,连接状态变成了BleManager.getInstance().isConnected() = false。其实之前的连接状态还是true,这是什么原因呢?

from fastble.

imcloudwu avatar imcloudwu commented on August 23, 2024

的確斷開後重新連結會有多個callback,代表clearCallback()沒有效

試過stopListenCharacterCallback()也無效

from fastble.

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

新版已修复

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.