app/src/main/java/com/michael/bci/BciReceiver.java
private void CloseChannel() throws IOException, TimeoutException {
        if (channel_1 != null)
        {
            channel_1.close();
            channel_1 = null;
            Log.d(TAG, "RMQ: Close Channel 1 for EEG");
        }

        if (connection != null)
        {
            connection.close();
            connection = null;
        }
    }
// Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state
private void CloseChannel() throws IOException, TimeoutException {
        if (channel_1 != null)
        {
            channel_1.close();
            channel_1 = null;
            Log.d(TAG, "RMQ: Close Channel 1 for EEG");
        }
        if (connection != null)
        {
            connection.close();
            connection = null;
        }
    }
private void CloseChannel ( ) throws IOException , TimeoutException { if ( channel_1 != null ) { channel_1 . close ( ) ; channel_1 = null ; Log . d ( TAG , "RMQ: Close Channel 1 for EEG" ) ; } if ( connection != null ) { connection . close ( ) ; connection = null ; } }
Cleanup the channel and leave it in an uninitialized state
Cleanup the channel and leave it in an uninitialized state