B4A Tutorial [B4X] The Networker's Guide To The Galaxy - Erel    Jul 14, 2016   (32 reactions) cgxWP4Wu77s The purpose of this tutorial is to cover the various communication options available for B4X developers. Will start with two important utilities: AsyncStreams: Asynchronously reads and writes to any stream and avoids blocking the main thread. Do not assume that messages will arrive as B4A Tutorial [B4X] AsyncStreams Tutorial - Erel    Feb 22, 2018   (9 reactions) New video tutorial:
256762156
AsyncStreams allows you to read data from an InputStream and write data to an OutputStream without blocking your program. The reading and writing are done with two separate threads.
When new data is available the NewData event is raised with the data.
When you write B4A Tutorial Android Bluetooth / BluetoothAdmin Tutorial - Erel    Aug 31, 2020   (17 reactions) The second button sends an intent to the OS to make the device discoverable and then calls Serial.Listen.
Once a connection is established:
1. AsyncStreams is initialized in prefix mode (see the AsyncStreams tutorial for more information).
2. The ChatActivity is started.
https://www.b4x.com/basic4 B4R Tutorial B4R Change Log (version history) - Erel    Sep 05, 2023   (5 reactions) The IDE is localizable. SD.Remove / Exist supported by ESP8266. v2.00 - June 21, 2017: https://www.b4x.com/android/forum/threads/b4r-v2-00-is-available-for-download.80895/ New features and improvements: Support for the latest ESP32 SDK (https://github.com/espressif/arduino-esp32/blob/master/doc/ B4A Tutorial [B4X] Network + AsyncStreams + B4XSerializator - Erel    Jun 30, 2020   (27 reactions) Better implementation, based on B4XPages: https://www.b4x.com/android/forum/threads/b4x-b4xpages-network-asyncstreams-b4xserializator.119011/#content
New video tutorial:
256762156
https://www.b4x.com/basic4android/images/SS-2016-10-19_15.32.02.jpg
https://www.b4x.com/basic4android/images/SS- B4A Tutorial B4A-Bridge source code - Erel    Sep 02, 2024   (13 reactions) B4A-Bridge is made of two components. One component is running on the device and the other is embedded in the IDE. The device side is the server side. It waits for connections and when a connection is established it handles the "action" messages. The code itself is made of a simple activity: https B4A Tutorial [B4X] [B4XPages] Network + AsyncStreams + B4XSerializator - Erel    Jun 30, 2020   (28 reactions) https://www.b4x..png 95652 https://www.b4x..png Cross platform version, based on B4XPages, of the network example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/#content It is so much simpler to use B4XPages that it feels like cheating :) All of the cod B4R Tutorial HC 05 Classic Bluetooth - Erel    Apr 08, 2019   (10 reactions) AsyncStreamsText will cut the message here End Sub Sub AStream_NewData (Buffer() As Byte) For i = 0 To Buffer.Length - 2 Step 2 Dim ledNumber As Byte = Buffer(i) Dim value As Boolean = Buffer(i + 1) = 1 leds(ledNumber).DigitalWrite(value) Next End Sub B4A Question sending text via Bluetooth - B4Chat tutorial - interesting behavior - DonManfred (first post)    Jun 02, 2020   (1 reaction) This is how AsyncStreams work. You can capture the packets and add the bytes to a buffer. try to find the string when you receive a end of line. B4A Question Device unavailable in Android Bluetooth / BluetoothAdmin Tutorial - Erel (first post)    Jan 04, 2018 AsyncStreams Tutorial Page: 1   2   3   4   5   6   7   Powered by ColBERT |