Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with start/stop monitoring #62

Open
vhiguita opened this issue Dec 16, 2019 · 1 comment
Open

Issue with start/stop monitoring #62

vhiguita opened this issue Dec 16, 2019 · 1 comment
Labels

Comments

@vhiguita
Copy link

vhiguita commented Dec 16, 2019

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()      
}
@pwittchen
Copy link
Owner

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 pwittchen added the bug label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants