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

save to shared preferences #11

Open
r3l4x-pt opened this issue Apr 13, 2021 · 1 comment
Open

save to shared preferences #11

r3l4x-pt opened this issue Apr 13, 2021 · 1 comment

Comments

@r3l4x-pt
Copy link

hi. whe a device is selected is it possible to save it to shared preferences so when the app is opened again it will try to connect with out scanning?
ive tried saving the device and then assign it to device but get app crash.
thank you

@Ficat
Copy link
Owner

Ficat commented Apr 25, 2021

if u don't scan, u can save the device address and use BleManager#connect(String address, BleConnectCallback callback) to connect target devcie

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