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

Error codes for sd_ble_gatts_hvx

I am trying to send just random dummy data to my android app. 
First of all, I am not expecting or need the confirmation, so I should be using the notification and not indication, because indication requires the confirmation, right?

There are 2 scenarios that are happening. I start sending data without setting notification on Android and I seem to be sending data but getting error 3401. If I got it right this means exactly that, that the other side has no notification enabled?

The other situation is when I enable notification on app side but after 5-6 messages it get error code 13, which means that something timed out?

I am a little bit lost on what I am doing wrong, because my app receives all of those messages. How and what would be correct way to handle this?

Related