B4R Question ESP8266 - WiFi Remote Configuration -> Astream_NewData(Buffer () as byte) Fires multiple times - Cableguy    
Jan 16, 2024.
While sending very basic responses to the browser (using Astream.write) works fine, I was having...
link: Hi @candide,
I just tried the examples in the links you referred to me.
It's way to complex for...
link:
possible rAWOT can help you... with AWOT you can create a real serveur in esp.
https://www.b4x.com/...
link: possible rAWOT can help you... with AWOT you can create a real serveur in esp.
https://www.b4x.com/a...
B4R Tutorial [tool] External Serial Connector - Erel    
May 19, 2020   
(6 reactions)   
tags: jNetwork + jReflection B4R program:
Sub Process_Globals
Public Serial1 As Serial
Private astream As AsyncStreams
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
astream.Initialize(Serial1.Stream, "Astream_NewData", "Astream_Error")
End Sub
Sub Astream_NewData (Buffer() As Byte)
Log("Received: ", Buffer)
End Sub
Sub AStream_Error
Log...
B4R Tutorial AsyncStreams Prefix Mode - Erel    
Feb 26, 2017   
(10 reactions)rRandomAccessFile v1.80 adds support for AsyncStreams in prefix mode.
All B4X development tools use AsyncStreams for network communication and now all of them support prefix mode (https://www.b4x.com/android/forum/threads/asyncstreams-tutorial.7669/#content).
In prefix mode a 4 bytes header is added to each message with the message length. The NewData event will only be raised when... mode is 500. The default in non-prefix mode is 100.
AsyncStreams in prefix mode + B4RSerializator...
B4R Tutorial HC 05 Classic Bluetooth - Erel    
Apr 8, 2019   
(10 reactions).
The Android will send commands to turn on or off the led(s).
'b4r
Sub AStream_NewData (Buffer() As Byte... Process_Globals
Public Serial1 As Serial
Private SerialNative1 As Stream
Private astream As AsyncStreams
Private leds(1) As Pin
Private timer1 As Timer
End Sub
Private Sub AppStart
Serial1....
RunNative("SerialNative1", Null)
astream.Initialize(SerialNative1, "astream_NewData...->wrappedStream = &::Serial1;
}
#end if
Sub Timer1_Tick
astream.Write("Millis here...
B4R Tutorial ESP8266 - Getting Started - Erel    
Feb 4, 2020   
(13 reactions) wifi As ESP8266WiFi
Private server As WiFiServerSocket
Private astream As AsyncStreams
Private... As Socket
Private astream As AsyncStreams
Private ser As B4RSerializator
End Sub
Sub AppStart... Server_NewConnection (NewSocket As WiFiSocket)
Log("Client connected")
astream.Initialize(NewSocket.Stream, "astream_NewData", "astream_Error")
End Sub
Sub Timer1_Tick
If server.Socket.Connected Then
astream.Write(ser.ConvertArrayToBytes(Array("Time here...
B4R Tutorial OLED displaying data from a USB to Serial com port using AsyncStreams - B4R, B4J and VB.Net - Peter Simpson    
Jul 6, 2019   
(13 reactions)   
tags: Erel
Private SSD As AdafruitSSD1306
Private AStream As AsyncStreams
End Sub
Private Sub AppStart...
Private AWTRobot As AWTRobot
Private Toast As ToastMessageShow
Private AStream As AsyncStreams.... I decided to put together this short tutorial on how to send/receive data using AsyncStreams, but in... HERE.
In your Arduino code, you need to use AsyncStreams to receive new data and you use... AStream_NewData (Buffer() As Byte)
'Receive data routine goes here...
End Sub
Receive data and send...
B4R Question [solved]Asyncstreams MaxBufferSize=1000 doesn't work - KMatle    
Jan 15, 2023I'm trying to send more than 500 bytes (prefix mode) and I've set WiFiAstream.MaxBufferSize to 1000 which doesn't work. The ESP32 does not receive anything if I send more than 500 bytes.
Do I miss something?...
link:
Have you increased #StackBufferSize?
Stacksize was 10000
Reason: I set the buffersize before initialization. For some unknown reas...
link: Have you increased #StackBufferSize?...
B4R Question ESP32 and AsyncStreams - embedded (first post)    
Jul 30, 2026Here I found something about 3rd serial port of ESP32...TRY it...https://www.b4x.com/android/forum/t...
link: As Pin
Public astream As AsyncStreams
Dim bc As ByteConverter
Dim bond_buffer(50) As Byte...
link: As Stream
Private Stream1 As AsyncStreams
End Sub
#if C
//HardwareSerial Serial2(2); // second...
B4R Tutorial Downloading a Web page with ESP8266 - Erel    
Dec 21, 2017   
(8 reactions) the response with AsyncStreams.
Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
Private astream As AsyncStreams
Private socket As WiFiSocket
End Sub
Private Sub... to server")
astream.Initialize(socket.Stream, "Astream_NewData", "Astream_Error")
Dim eol() As Byte = Array As Byte(13, 10)
astream.Write("GET / HTTP/1.1".GetBytes)
astream.Write(eol)
astream.Write("Host: www.example.com".GetBytes...
Other B4R v1.20 BETA - Support for ESP8266 Boards - Erel    
Jul 7, 2016   
(13 reactions) client As WiFiSocket
Private astream As AsyncStreams
Private timer1 As Timer
Private serverIp...
B4J code:
Sub Process_Globals
Private server As ServerSocket
Private astream As AsyncStreams
End....
WiFiUDP - Equivalent to EthernetUDP
WiFiSocket is compatible with AsyncStreams, MQTT and WebSocketClient... Timer1_Tick
If client.Connected Then
astream.Write("Time here is: ").Write..., 51042) Then
Log("Connected to server.")
astream.Initialize(client.Stream...
Page: 1  
2  
3  
4  
5  
6