Quantcast
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: re-established a terminated connection

Nick,

Thanks for the response.  I finally sat down and went through the code attached to your last response.  My hardware will probably work attaching and re-attaching to that project because it is not processing GATT messages.  That seems to be the problem that is causing my hardware to hang and not reconnect.  I routinely read a characteristic value.  When I have a link termination event what seems to happen is that my 'read request' goes out prior to to the link termination and when a 'link termination event' occurs the ATT_READ_RSP gets put back on the priority list and doesn't get processed until the after the link between my two devices is terminated.  Then once the termination is complete the code tries to process the outstanding GATT message, this causes the wrong function to be called when the GATT message is finally processed.  I have been able to fix this problem by adding a condition to only process GATT messages when a connection is active.

Is there a function in the TI BLE stack that clears outstanding messages and events for particular connection once that connection has terminated?

Thanks...


Viewing all articles
Browse latest Browse all 116964

Trending Articles