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

FAILURE_BUTTON_NOT_IN_PAIRABLE_MODE = 50 #31

Open
orcuns opened this issue Nov 10, 2023 · 1 comment
Open

FAILURE_BUTTON_NOT_IN_PAIRABLE_MODE = 50 #31

orcuns opened this issue Nov 10, 2023 · 1 comment

Comments

@orcuns
Copy link

orcuns commented Nov 10, 2023

I started to receive FAILURE_BUTTON_NOT_IN_PAIRABLE_MODE. I can not reconnect with flic again

Steps to Reproduce:
1- all integration works expected. I'm connected with flic2 button.
2- After a while I want to remove connection of flic2 button. And I call this function below:

class Flic2Service: Service() {
....
 fun forgetFlicButton(): Boolean {
            Flic2Manager.getInstance().apply {
                if (this.buttons.isNotEmpty()) {
                    stop()
                    this.forgetButton(this.buttons[0])
                    Timber.i("forgetFlicButton=true")
                    return true
                }
                Timber.i("forgetFlicButton=false")
                return false
            }
        }
.....
}

3- After calling forgetFlicButton, I want to reconnect my Flic2 Button
4- Unfortunately I can not reconnect my flic2 button again. I receive these logs during the connection:

onDiscovered 80:Q4:AA:73:11:11
onConnected
onComplete FAILURE_BUTTON_NOT_IN_PAIRABLE_MODE - 0 - button.state=null

Any idea what's going wrong here?
I've recently update my project's targetSDK = 34. Maybe related with it?

@Emill
Copy link
Contributor

Emill commented Nov 10, 2023

Do you hold down your button pressed for at least 7 seconds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants