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

Microcontroller BLE connect/disconnect -> add more code #5

Open
BloodhoundAllfather opened this issue Mar 24, 2024 · 2 comments
Open
Assignees

Comments

@BloodhoundAllfather
Copy link
Collaborator

BloodhoundAllfather commented Mar 24, 2024

Currently it prints connect/dicsonnect but we may put more functionality in them. Like changing a boolean flag ble_connected

@mohammad-askari It's related to issue #12

@BloodhoundAllfather
Copy link
Collaborator Author

BTW I think the bluetooth library on the microcontroller has a function like is_connected()

@mohammad-askari
Copy link
Owner

mohammad-askari commented Mar 26, 2024

That's right. I've already seen it. And related to issue #12, since the board has a native USB, if (Serial) will return true if the Serial port is open. It just seems to add a 10 second delay. We can perhaps check its status once every few seconds to enable or disable Serial prints.

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