Giter Site home page Giter Site logo

设备返回值 about fastble HOT 8 CLOSED

jasonchenlijian avatar jasonchenlijian commented on August 23, 2024
设备返回值

from fastble.

Comments (8)

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

notifyDevice

from fastble.

cwfzc avatar cwfzc commented on August 23, 2024

你好,我在设备连接的时候,如果连接成功就notifyDevice接收参数,但是设备需要配对,配对成功了以后,有一次连接成功,然后notifyDevice就执行了两次,结果收到的数据打印的时候,打印两次,间隔不到2毫秒,请问这样要怎么处理呢?

from fastble.

Sunny22100486 avatar Sunny22100486 commented on August 23, 2024

你好,我在使用的时候每次连接之后,然后再返回上个页面(没有主动断开连接),再次连接的时候BleGattCallback执行次数会累加,这是什么原因呢

from fastble.

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

bleManager.stopListenCharacterCallback

from fastble.

Sunny22100486 avatar Sunny22100486 commented on August 23, 2024

这个这是移除某个特征值回调监听的吧,会不会是我每次连接的时候是不是都new 了一个BleGattCallback呢?

from fastble.

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

每次都new没有问题,但记住用完之后调用bleManager.stopNotify。 否则建议不要new

from fastble.

Sunny22100486 avatar Sunny22100486 commented on August 23, 2024

from fastble.

Jasonchenlijian avatar Jasonchenlijian commented on August 23, 2024

那你就构造一个BleGattCallback的子类对象,一直用它就好。

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.