neurosky-android-sdk icon indicating copy to clipboard operation
neurosky-android-sdk copied to clipboard

Issue with start/stop monitoring

Open vhiguita opened this issue 4 years ago • 1 comments

When I am using the method neuroSky.stopMonitoring() with Kotlin, it stays in an 'Idle' state, after of resuming the data transmission is not working with this method neuroSky.startMonitoring(). How could I do to fix it?.

//Start monitoring
 btn_start_monitoring.setOnClickListener {
            neuroSky.startMonitoring()
         
 }
//Stop monitoring "Idle State"
btn_stop_monitoring.setOnClickListener {
            neuroSky.stopMonitoring()      
}

vhiguita avatar Dec 16 '19 13:12 vhiguita

Hi @vhiguita,

I think your issue is related to #16. Underlying ThinkGear SDK works in such a way, so this bug is inherited here too. I think, unfortunately the best way to handle it for now is to call disonnect() method and when you want to start monitoring again, then you need to call connect() and startMonitoring(). I'll investigate it and see if it's possible to handle it in a better way.

Regards, Piotr

pwittchen avatar Dec 16 '19 17:12 pwittchen