This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PIN access on app for BLE device

I would like to know how to create a prompt that asks for a PIN before a user gets access to pairing to a BLE peripheral. Currently I'm using a CurieBot and once it's found via the app, you can click it and gain access to it.

  • I had a quick look at the API of the library, it seems like it doesn't even support pairing, so static passkey is not supported either.

    It is probably not possible to use the Nordic APIs.

    With our SoftDevice you can set a static passkey in the peripheral, so that you don't need to display, even though you say that you have a display. Then you would input this static key into the central, because it has a keyboard.

    The Arduino 101 is a board with a Intel Curie module. The Intel Curie module has the nRF51822 chip inside. So the nRF51822 is accessed through the Curie module.

    I think this will be difficult to do without the Arduino 101 library support.

  • Thanks for the responses, now I wish I had one of Nordic's products instead of this to work with as the Arduino 101 has no support and was discontinued a while ago, sadly. It is not well documented either so I guess I'll have to create a makeshift passkey implementation from the app side of things. Hopefully it works out well, thanks for clearing this up for me as not even the Arduino forum can respond to me and it has been several weeks, the Arduino 101 is really hopeless sadly.

  • No problem. Hope you find a solution that works for you :)

Related