SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
This callback is used to pass GAP state change events to the application. This callback is the following type:
NOTE
TRUE should be returned from this function if the GAPRole is to deallocate the event message. FALSE should be returned if the application deallocates. By default, TRUE is always returned. If the event message is to be processed by the application at a later time (not just in the callback context), FALSE should be returned
The possible GAPRole central states are in the following list. For more information on these events, see Section A.3: