Comments (7)
I am having this same issue. Did you figure it out @kk17?
from ble-framework.
No,I use another plugin instead.
from ble-framework.
@architek1 what about you? could you make it work?
from ble-framework.
Like what's really bad it looked very promising
from ble-framework.
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.
@emdepdev if you fixed the problem can you please submit a pull request?
from ble-framework.
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)
- How to send data from Unity to Android (via BLE) HOT 9
- Hello~ So if I want to catch Arduino that send data.Can i use this project? HOT 2
- Stuck with the InitBLEFramework message, even with the sample HOT 6
- Select Characteristic to write to HOT 1
- bluetooth LE for android unity HOT 3
- Change the other microcontroller HOT 1
- Unable to run copyPlugin HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ble-framework.