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

Static passkey and write_no_response

Dear All, I'm trying to set a static passkey. I have created 2 custom characterestic. One characterestic is used for notifications and the other one for writing. For communication I'm using NRF Master Control app.

When I set in my second characterestic char_md.char_props.write = 1 (write request) my program works as expected. When I connect and first time try to write something it requires the passkey, but when I change it to char_md.char_props.write_wo_resp = 1 (write command) I can write any data without typing the passkey. It doesn't require to type a passkey. Please have a look at this file how I created services and characterstics.ble_mps.c Can someone help me to solve my the problem? Thanks a lot for your help.

Harut

Parents
  • @Harut: It's strange what you described. This means when you set the properties to write without response you can access the characteristic without encryption. Have you make sure you have set the characteristic write permission with encryption ? Such as with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM() ?

    If possible, please upload your project source code so that we can test here.

Reply
  • @Harut: It's strange what you described. This means when you set the properties to write without response you can access the characteristic without encryption. Have you make sure you have set the characteristic write permission with encryption ? Such as with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM() ?

    If possible, please upload your project source code so that we can test here.

Children
No Data
Related