B4J Question Understanding Asyncstreamsobject

HARRY

Active Member
Licensed User
Longtime User
I need to send from an Arduino structures to a Raspberry receiving those structures as types, and handling the received stuff using B4XSerializator. I understand that on the Raspberry I should receive those structures/types as objects. I tried it, but received an error message that the length was too great.

What should I do on the Arduino side to adhere to the requirements of Asyncstreamsobject on the Raspberry. The traffic is only in one direction: from Arduino to Raspberry.

Harry
 

HARRY

Active Member
Licensed User
Longtime User
ad1: So I should use AsyncStreamsText?

ad2: I assume that the received stream on the B4J side should contain information on the layout; at least on the length of Strings contained in that stream. What is the layout of that information? I must compose a stream on the Arduino side which B4J understands, shouldn't I?

Harry
 
Upvote 0
Top