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 do want to use a static key because the Arduino 101 + CurieBot does not have a display on it and I do not plan on adding one so just a simple static key can do. With respect to the APIs, I am not sure but it is definitely not the same functions as the MSCs. I am not sure how I am supposed to know what APIs I'm using but I can send you a link to the libraries: www.arduino.cc/.../CurieBLE

    I don't know if it's possible to use Nordic APIs on the Arduino Sketch (this is used to write the code for the Arduino 101/CurieBot in C language). I want to get something clear, are you saying that the static key is created and set from the Peripheral side of the code(The CurieBot, Arduino Sketch) or is it at the central side of the code(The app, Android Studio) or is it both? Well I assume it's both because I have to be able to display a prompt for the static pin to be entered.

Reply
  • I do want to use a static key because the Arduino 101 + CurieBot does not have a display on it and I do not plan on adding one so just a simple static key can do. With respect to the APIs, I am not sure but it is definitely not the same functions as the MSCs. I am not sure how I am supposed to know what APIs I'm using but I can send you a link to the libraries: www.arduino.cc/.../CurieBLE

    I don't know if it's possible to use Nordic APIs on the Arduino Sketch (this is used to write the code for the Arduino 101/CurieBot in C language). I want to get something clear, are you saying that the static key is created and set from the Peripheral side of the code(The CurieBot, Arduino Sketch) or is it at the central side of the code(The app, Android Studio) or is it both? Well I assume it's both because I have to be able to display a prompt for the static pin to be entered.

Children
No Data
Related