This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Exit after disconnect with indication using

Hello,

I'm using SimpleBlePeripheral example and I change it for indications. But when I write to cfg - 

status = GATTServApp_ProcessCCCWriteReq( connHandle, pAttr, pValue, len, offset, GATT_CLIENT_CFG_INDICATE );

It's OK. But when device disconnected, program go to EXIT. Why? 

I have breakpoint in changestate, but not work this function before EXIT.

Could you help me, please?

Vilem