ble/Gap.h
void processDisconnectionEvent(Handle_t handle, DisconnectionReason_t reason) {
        /* Update Gap state */
        --connectionCount;
        if (!connectionCount) {
            state.connected = 0;
        }

        DisconnectionCallbackParams_t callbackParams(handle, reason);
        disconnectionCallChain.call(&callbackParams);
    }
/**
     * Helper function that notifies all registered handlers of an occurrence
     * of a disconnection event. This function is meant to be called from the
     * BLE stack specific implementation when a disconnection event occurs.
     *
     * @param[in] handle
     *              The ID of the connection that generated the event.
     * @param[in] reason
     *              The reason for disconnection.
     */
Helper function that notifies all registered handlers of an occurrence
of a disconnection event. This function is meant to be called from the
BLE stack specific implementation when a disconnection event occurs.

@param[in] handle
The ID of the connection that generated the event.
@param[in] reason
The reason for disconnection.
Helper function that notifies all registered handlers of an occurrence of a disconnection event . This function is meant to be called from the BLE stack specific implementation when a disconnection event occurs . @param [ in ] handle The ID of the connection that generated the event . @param [ in ] reason The reason for disconnection .
void processDisconnectionEvent(Handle_t handle, DisconnectionReason_t reason) {
        --connectionCount;
        if (!connectionCount) {
            state.connected = 0;
        }
        DisconnectionCallbackParams_t callbackParams(handle, reason);
        disconnectionCallChain.call(&callbackParams);
    }
void processDisconnectionEvent ( Handle_t handle , DisconnectionReason_t reason ) { -- connectionCount ; if ( ! connectionCount ) { state . connected = 0 ; } DisconnectionCallbackParams_t callbackParams ( handle , reason ) ; disconnectionCallChain . call ( & callbackParams ) ; }
Helper function that notifies all registered handlers of an occurrence
 of a disconnection event.
Helper function that notifies all registered handlers of an occurrence of a disconnection event .
/* Update Gap state */