I would like to connect from Puck to Android using "NRF.connect("Bluetooth Mac address")"
What is required on Android, start GATT server ?
That's right, yes. I believe you may be able to experiment using the nRF connect app to create a server.
I configured a sample GATT server using nRF connect app. I have following issues:
I guess you just typed NRF.setScan()? You need to add a handler to make it work.
Try NRF.findDevices(print) for something a bit easier.
There are different types of address too - see what findDevices returns - you may have to put random after the Mac address to make it work (if the address is classified as not being universally unique).
console.log(d); // print packet info
NRF.setScan(); // stop scanning
return any results.
I guess configuring GATT server with the sample configuration does not start the server itself.
Another approach could be implementing a GATT server on Android.
Ahh, that all looks fine. Sometimes it can depend on your phone - as far as I know not all Android phones support Central mode.
If you had a second Android phone then you could at least test :)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem