-
Notifications
You must be signed in to change notification settings - Fork 5
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
Connect to nrf52 #8
Comments
Hi - I'm afraid I don't know exactly what the issue is. How are you creating the NUS service on the device? Using the Nordic There is nothing specific in there that requires a Puck.js or other Espruino device, so it should work just fine |
Thanks for the answer! |
No - I'm extremely surprised then. It should 'just work' :( |
I think I know what the issue is but I'm not entirely sure how to solve it. |
Ahh, interesting - thanks for spotting that! Well, I assume it's this check? https://github.com/espruino/winnus/blob/master/cpp/winnus.cpp#L494 There must be a better way to handle it... |
Hi!
I'm trying to use this module to connect to a nrf52 with NUS service.
However when I run this code:
`var winnus = require("winnus");
var device = winnus.getDevices()[0];
console.log(device)
winnus.connect(device, function(data) {
console.log("Got data "+JSON.stringify(data));
});`
It fails on connect:
Am I doing something wrong? does this module work exclusively for puck.js devices?
Thanks!
The text was updated successfully, but these errors were encountered: