What does this callback function mean by returning error code -22?
What does this callback function mean by returning error code -22?
Hello,
Error code -22 corresponds to -EINVAL ("invalid argument"). However, I'm not sure why this error occurs in your case. Maybe you can try to place a breakpoint here (remember to build with debug optimizations): https://github.com/nrfconnect/sdk-nrf/blob/3f5c804b9e86f3c1eb0c53f501376b8578d08ee5/subsys/bluetooth/services/gattp.c#L102
Best regards,
Vidar