mit-cml / appinventor-extensions

Source code of extensions published for MIT App Inventor
Apache License 2.0
85 stars 93 forks source link

bluetoothLE doesn't work across screens #74

Open specternecter opened 9 months ago

specternecter commented 9 months ago

If SerialOTG (USB) is open, you can open a new screen and it will be detected as being open, as well as being able to send and receive using it, even though it was started on a different screen. If you try to do this with bluetoothLE, it doesn't work. Even though you're connected, it will show it's not, and you can't connect again without disconnecting, which you also can't do on a different screen. So in order to use it on a different screen you have to disconnect before opening the new screen, then when the new screen opens you have to connect again. This makes it extremely difficult to do things like AES CTR encryption, which must always stay in sync. It also takes a long time to do the disconnect/reconnect and doing this can often be unreliable. Is it possible to make it work across screens without the massive headache?