Great software! Have been able to do quite a bit without asking questions, thanks to this forum and it's contributors
Is there any way to add a click event to disconnect or stop the bluetooth service in the B4A code from post number one in link?
https://www.b4x.com/android/forum/threads/hc-05-classic-bluetooth.66677/
I have few variations of the same application on the phone. I run into problems switching between the apps. The OS will stay connected or try to reconnect to the last one that was open. The newly opened app can't connect and keeps searching.
Thanks
Add:
Found some more info. Would this be a good way to disconnect bluetooth?
In main
In starter
Is there any way to add a click event to disconnect or stop the bluetooth service in the B4A code from post number one in link?
https://www.b4x.com/android/forum/threads/hc-05-classic-bluetooth.66677/
I have few variations of the same application on the phone. I run into problems switching between the apps. The OS will stay connected or try to reconnect to the last one that was open. The newly opened app can't connect and keeps searching.
Thanks
Add:
Found some more info. Would this be a good way to disconnect bluetooth?
In main
B4X:
Sub btnDisconnect_Click
CallSub(Starter, "Service_Destroy")
End Sub
In starter
B4X:
Sub Service_Destroy
Serial.Disconnect + AStream.Close.
End Sub
Last edited: