astreams problem

oymyakon

Member
Licensed User
Longtime User
Hi,
i am trying to implement a modbus over bluetooth system to an embedded controller. i have all of the astreams.write working sending an array of bytes, however the response appears to get broken up due to delays i am guessing. is there any way of building up the astreams_newdata(buffer) until i have the complete response?

hope i have made sense as i am new to this.

Cheers
Paul.
 

mc73

Well-Known Member
Licensed User
Longtime User
You can program your controller to send a special string as confirmation of end of transmission. If of course I understood correctly the case. In the mean time, you can store data received in an array, list, stringbuilder etc.
 
Top