On Thu, Apr 23, 2015 at 12:20:49PM +0100, D Haley wrote: > > Is there any way I can have the read function return when a delimiter is > reached?
No, this is something you'll need to implement yourself on top of the primitives provided. Either read one byte at a time until you get to the delimiter, or read into a buffer and handle the possibility of getting part of the next message also. I've deliberately avoided adding "read line", "read packet" or similar functions to the API - basically anything that actually looks at the bytes being sent on the port. This is because although there's some helpful functionality for this on some operating systems, there's nothing that can be reliably provided across all platforms. So the best way to implement any data-dependent processing is on top of the basic cross-platform primitives. We could have added helper functions for common cases like this, but I prefer to keep our API simple and leave the rest to the application, since there are many possible variations on the details. Martin ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel