28. Bluetooth in Screen1 and Screen2.
p9H4i_pantalla_real_BT.aia (8.7 KB)
When we change from Screen1 to Screen2, we lose the Bluetooth connection.
The proper method to avoid this is to use "virtual screens" with VerticalArrangement as we saw in the post: #12
Now let's see how we can go from Screen1 to Screen2 using the disconnection and connection in the new Screen.
To go from one Screen to another, we disconnect the current connection, when we start the visible Screen we reconnect.
I've put a little delay (for each 1 ... 10000) to make the connection easier.
The app is similar to the previous example, two Sliders send two numbers to the Arduino, it adds them and returns the sum to the app.
Screen1
Screen2
Arduino code.
- The same from the previous post.


