I've just begun experimenting with your toolkit, and have received the first request from my t68i (yeah!) :-)
I'd like to know if this is the correct way to receive a multi-part message:
Lock workspace buffer
Begin loop
xptReceiveData
Add received bytes to total received
Adjust write pointer by received bytes
End loop when total received bytes < cbLength or received bytes = 0
unlock write buffer
smlProcessData
Regards,
Brian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've just begun experimenting with your toolkit, and have received the first request from my t68i (yeah!) :-)
I'd like to know if this is the correct way to receive a multi-part message:
Lock workspace buffer
Begin loop
xptReceiveData
Add received bytes to total received
Adjust write pointer by received bytes
End loop when total received bytes < cbLength or received bytes = 0
unlock write buffer
smlProcessData
Regards,
Brian
sorry, small typo, should be:
End loop when total received bytes = cbLength or received bytes = 0