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

nRF8002 notifying host on change in input pin

Hello I am using the nRF8002 kit. I would like to inform the host (Android app) when there is a long button press on the input pin.

Is this possible and if so which BLE profile / service should I be using for this ? I tried to use the "Immediate Alert" service but that service can only send data from the phone to the nRF device.

Thank You

Parents
  • Hi Balaji

    Thank you for the response.

    I have configured the nRF to use the immediate alert (master) as you have suggested. But the challenge I face is this.....

    The immediate alert profile has only a "write" characteristic i.e it does not have a "notify" characteristic. With a "write" characteristic, the client (Android phone) can only send data to the server (nRF device).

    My question is how to send the pin change information back to the phone ? Please let me know if I missed something.

    What needs to be done on the Android side to get the pin value change information

    Thank You

  • I'd be happy if you could accept Balaji's answer by clicking the button below it if you found it useful! :-) That helps clearing up this question and keeping the site tidy.

Reply Children
No Data
Related