Good day!
I created a program from the SIMPLE_PROFILE example. Added two additional characteristics to the profile by analogy with the existing ones. When debugging a program, the first characteristic works great, I read 9 bytes. The second characteristic is of the notification type, it transfers an 18 byte structure. I wanted my program to transmit a packet with data on the second characteristic up to 250 times per second. But when trying to transmit about 10 times per second, I ran into a problem: the "GATT_NOTIFY" function returns an error code = 0x16. I did not find a description of the error in the / h file.
I assigned one of the pins for indication, before calling the function, I set it to 1, after calling the function, I set it to 0 so that I can see the signal with an oscilloscope. When I tried to transmit about 100 times per second, I noticed the following: half a second transmits, and the rest half a second is not. What am I doing wrong, what actions should I take. I ask for your advice.
To check if the device is working properly, I use the "GATT_Browser" application for my mobile phone.
Thank you in advance for your help