Giter Club home page Giter Club logo

Comments (7)

PostArchitekt avatar PostArchitekt commented on August 10, 2024

I am having this same issue. Did you figure it out @kk17?

from ble-framework.

kk17 avatar kk17 commented on August 10, 2024

No,I use another plugin instead.

from ble-framework.

viversba avatar viversba commented on August 10, 2024

@architek1 what about you? could you make it work?

from ble-framework.

kirax999 avatar kirax999 commented on August 10, 2024

Like what's really bad it looked very promising

from ble-framework.

WhiteRaven89 avatar WhiteRaven89 commented on August 10, 2024

If Any one is facing problem for finding nearby bLE devices replace line in BLE.mm inside function : findBLEPeripherals

[self.CM scanForPeripheralsWithServices:[NSArray arrayWithObject:[CBUUID UUIDWithString:@RBL_SERVICE_UUID]] options:nil];

with

NSDictionary* scanOptions = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], CBCentralManagerScanOptionAllowDuplicatesKey, nil];
[self.CM scanForPeripheralsWithServices:nil options:scanOptions];

from ble-framework.

giomurru avatar giomurru commented on August 10, 2024

@emdepdev if you fixed the problem can you please submit a pull request?

from ble-framework.

giomurru avatar giomurru commented on August 10, 2024

I think I know what is your problem. Are you sure that the RBL_SERVICE_UUID defined in BLEDefines.h is the same of your board? Please verify that you have one of these boards.

  • BLE Shield
  • BLE Mini
  • Blend Micro
  • Blend
  • BLE Nano
  • RBL nRF51822

I have BLE Mini and I tested the code on master in iOS 9 and iOS 11 and it works.
The code you want to change would cause the framework to find multiple devices different from the specific RedBearLab boards for which the framework was created (including duplicate UUIDs). Apple documentation clearly states that you should avoid this behavior to improve battery efficiency.
Read paragraphs Minimize Processing of Duplicate Device Discoveries and paragraph Only Discover Services and Characteristics You Need in the documentation https://developer.apple.com/library/content/documentation/Performance/Conceptual/EnergyGuide-iOS/BluetoothBestPractices.html.

If you want to support another board different from RedBearLab boards I suggest to change the values defined in the BLEDefines.h with those of your board and then try to adapt the code. I can not guarantee that this will work because this framework is intended for the specific boards in the list above.

I am closing the issue.

from ble-framework.

Related Issues (8)

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.