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.

Parents
  • When the CurieBot gets a pairing request from the smart phone it must include that it has a display in the pairing response, see this.

    Then you would need to have some way of displaying the pin that should be put into the smart phone, or maybe you can set it static, see this.

  • I'm a beginner at coding and the two links there are not helping my confusion. Is it that this is code in a diagram form? Is it a library? Can I enter this directly into my code once I have this library? What I'm getting is that I have to code the pairing key on the Arduino 101 side, then code a display to enter this passkey on the app side, and I would like the key static so the second link is supposed to be helpful to me but I just don't get it. I apologize in advance for my incompetence but I am really struggling to understand BLE as it is not nearly straightforward. If you can answer my questions above and give a more detailed description on how I go about this, it would be much appreciated.

Reply
  • I'm a beginner at coding and the two links there are not helping my confusion. Is it that this is code in a diagram form? Is it a library? Can I enter this directly into my code once I have this library? What I'm getting is that I have to code the pairing key on the Arduino 101 side, then code a display to enter this passkey on the app side, and I would like the key static so the second link is supposed to be helpful to me but I just don't get it. I apologize in advance for my incompetence but I am really struggling to understand BLE as it is not nearly straightforward. If you can answer my questions above and give a more detailed description on how I go about this, it would be much appreciated.

Children
No Data
Related