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

Read RSSI fails on iOS 10 #135

Open
mdailor opened this issue Feb 8, 2017 · 1 comment
Open

Read RSSI fails on iOS 10 #135

mdailor opened this issue Feb 8, 2017 · 1 comment

Comments

@mdailor
Copy link
Contributor

mdailor commented Feb 8, 2017

On iOS 10, when I try to read the RSSI of a scanned+connected device:

evothings.ble.rssi(
device,
function (rssi) { console.log("RSSI=" + rssi },
function (err) { console.log("ERROR=" + err });

I get the following error:

[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa000000697373724
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate:
[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa000000697373724

How can I read the RSSI value? Thanks!

@mdailor
Copy link
Contributor Author

mdailor commented Feb 8, 2017

SOLVED!
On further investigation: in ble.js, change:

exports.rssi = function(deviceOrHandle, success, fail)
{
exec(deviceOrHandle, success, fail, 'BLE', 'rssi', [objectHandle(deviceOrHandle)]);
};

to this:

exports.rssi = function(deviceOrHandle, success, fail)
{
exec(success, fail, 'BLE', 'rssi', [objectHandle(deviceOrHandle)]);
};

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

1 participant