Hi Guys
I'm trying to figure out how I can read a section of the circular buffer and when it gets to a certain termination character (.) it must jump out
The string that is being sent is something like Name.1111.Hellow World How Are You.
The Name is fine as I'm using LookForValue the pin is also fine as I'm counting 4 digits but the message is a problem as it can be anything from 1 to 20 characters.
Reading Buffer
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Reading Buffer
Hello,
If everything is delimited with a full stop then I would do something like this using a finite state machine approach.
You might need a timeout to reset the RxMode back to 0 if no data is received for several seconds.
If everything is delimited with a full stop then I would do something like this using a finite state machine approach.
You might need a timeout to reset the RxMode back to 0 if no data is received for several seconds.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel