sorry for writing : hserin ,HD,[str buffer\50]
suppose it is : hserin 100,main,[str buffer\50]
sorry for writing : hserin ,HD,[str buffer\50]
suppose it is : hserin 100,main,[str buffer\50]
Hi Rony,
I don't think there's an internal counter or anything like that. If the string always ends with a certain character you can use that to end the HSERIN. If not maby you can initial the array with all zeros or something else, then when the HSERIN ends due to timeout you itterate thru the array untill you start you "seeing" zeros etc.
/Henrik.
thanks Henric,
there is nothing to end the trame in question, and i am currently using the method you mentioned to know the number of the received bytes, and i am filling the buffer with $FF which is not in use till now, but i will use it soon.. that is why i start searching for an internal counter.
Rony
Bookmarks