I am trying to receive some test data from my phone via Bluetooth (sending 2 integers between 125 to 175 consecutively), and output to the terminal via sertxd. Would this be the proper way of receiving the 2 values from scratchpad back to back:
The first value is correct but second is not updating. When I only send one value, works perfect. Am I missing something? Should I use hserin 0,2 instead to read the values if they must be in order?
Code:
setfreq m16
hsersetup b19200_16, %001
main:
ptr = hserptr - 1
sertxd (#@ptrinc," ",#@ptr,cr,lf) ; echo out
goto main