How can I maintain the Bluetooth connection when interacting between screens?

Hello everyone. I would appreciate if you could help me with this problem. I'm relatively new to MIT, and I'm making an app which links via Bluetooth to an "ESP32" Arduino device. I created a "Settings" screen where I make the Bluetooth connection, and then when I change the screen where I can interact with the ESP32 device the connection drops.
From already thank you very much.

You lose BlueTooth connections when you switch screens.

Use stacked Vertical Arrangements instead, only one Visible at a time.

Sorry. I didn't understand. Do you have an example in an image? Thank you so much

See tip 1 here


@Taifun @ABG
Good day! Sorry, I forgot to thank you.
I ended up solving it by doing what they recommended. I unified the screens I had into just one by creating "virtual screens", and it works perfectly and even more fluid.
Thank you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.