YIM bunchhat Active Member Licensed User Longtime User Aug 18, 2015 #1 Hello, Could I use two Astreams in on one app. Ex: astream1 and astream2. How it handle event? I use one stream with wifi and one stream with Bluetooth. I already try use Textwriter Textreader with Bluetooth buy it stuck and need to wait 10 to 20 second to reach data on receiver.
Hello, Could I use two Astreams in on one app. Ex: astream1 and astream2. How it handle event? I use one stream with wifi and one stream with Bluetooth. I already try use Textwriter Textreader with Bluetooth buy it stuck and need to wait 10 to 20 second to reach data on receiver.
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2015 #2 You can use any number of AsyncStreams as you need. You can use a different event name for each one or use Sender to find which object raised the event. See this example: https://www.b4x.com/android/forum/threads/b4j-cctv-example.34695/#post-203347 Upvote 0
You can use any number of AsyncStreams as you need. You can use a different event name for each one or use Sender to find which object raised the event. See this example: https://www.b4x.com/android/forum/threads/b4j-cctv-example.34695/#post-203347
YIM bunchhat Active Member Licensed User Longtime User Aug 18, 2015 #3 ok now it work....thank.. Upvote 0