Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSSI read not working in real app #143

Open
sunnymtl opened this issue Jun 7, 2017 · 6 comments
Open

RSSI read not working in real app #143

sunnymtl opened this issue Jun 7, 2017 · 6 comments

Comments

@sunnymtl
Copy link

sunnymtl commented Jun 7, 2017

I'm able to read the RSSI value continuously through Evothing app (on Samsung S4 Android 5.0) from a connected device. But after I built the custom app with exactly the same code, the RSSI value won't show. I have tried the online phonegap builder and the command line cordova builder, and another phone (G3 Android 6.0), got the same result: NO RSSI read. Could anybody help? should I add something when I build the real app?

Here is the method I used:
evothings.ble.rssi(
deviceHandle,
function (rssi) { console.log("RSSI=" + rssi },
function (err) { console.log("ERROR=" + err });

Thanks a lot!

@tozymandias
Copy link

tozymandias commented Jun 8, 2017

I am having the same problem. This method used to work (with an older version of the plugin) at some point, and then it stopped working. Please let me know if you find a solution. Thanks.

@sunnymtl
Copy link
Author

sunnymtl commented Jun 8, 2017

@tozymandias Sure. I have submitted a ticket to ask the team, but no answer yet. No idea why it worked with evothing studio but not the app.

@acutetech
Copy link

There is a bug in ble.js for the RSSI call - at about line 980:
exec(deviceOrHandle, success, fail, 'BLE', 'rssi', [objectHandle(deviceOrHandle)]);
should be:
exec(success, fail, 'BLE', 'rssi', [objectHandle(deviceOrHandle)]);

@acutetech
Copy link

I see this was also reported and the bug found in #135

@ustincameron
Copy link

Is this resolved?

@sunnymtl
Copy link
Author

sunnymtl commented Aug 5, 2017

I have tried other ble plugins, finally use this: https://github.com/randdusing/cordova-plugin-bluetoothle, which doesn't have major problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants