B4R Question To help the serial port is more simple

santook

Member
Whether you can allow AsyncStream to support a new property ‘NewLine’?
Likes:
aStream.Initialize(Serial1.Stream,"aStream_NewData","aStream_Error")
aStream.WaitForMoreDataDelay=1
aStream.NewLine=Array of Byte(0xFF,0xFC,0xFF,0xFF)

If newline arrives, trigger aStream_NewData Event.This can make the serial communication protocol processing easier.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

It is difficult (not impossible) to add such feature in the library due to the limited memory available. There is such a feature in other B4X tools (AsyncStreamsText).

You should use B4RSerializator to create compact and complete messages. It will make the parsing much simpler.
 
Upvote 0
Top