This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Role of nRF51822 in connectable and undirected advertising mode

Hi Friends,

I am using nRF51822(S110 and SDK10.0.0) in my project and I need the chip to be in connectable and advertising mode under peripheral config . I configured the device to my requirement. I needed to write a data to chip using mobile app. But found the service available is only to read. Can I write a data from mobile app and if Yes any example programs.

Thanks.

Parents
  • How did you configure it? Did you make the characteristic value writable? What app are you using? You can have a look at ble_app_uart example. Examine tx_char_add(). There you can see that the characteristic properties allow write request (char_md.char_props.write = 1;) and write command (char_md.char_props.write_wo_resp = 1;). You also need to allow write access to the attribute, this you do with BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);

Reply
  • How did you configure it? Did you make the characteristic value writable? What app are you using? You can have a look at ble_app_uart example. Examine tx_char_add(). There you can see that the characteristic properties allow write request (char_md.char_props.write = 1;) and write command (char_md.char_props.write_wo_resp = 1;). You also need to allow write access to the attribute, this you do with BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);

Children
No Data
Related