Hi all, I'm working on a patch that is getting a stream of comma separated values from an Arduino device. Is there an easy way to remove them? Right now I am using the comport object and associated objects. I have modified the following subpatch, but the commas are getting pointlessly sent to a downstream unpack object.
If anyone would care to explain what's going on here in this bit of magic as well, that would also be awespme.
David
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-03-24 04:45, David Welch wrote:
Hi all, I'm working on a patch that is getting a stream of comma separated values from an Arduino device. Is there an easy way to remove them? Right now I am using the comport object and associated objects. I have modified the
the arduino sends the data via a servial line, so somewhere inside the [arduino] object you find a [comport] that will output the bytes as they are received. just replace the "," (byte value 44) with something more easily readable, e.g. " " (byte value 32).
another simple solution would be to use a different firmware on the arduino, that uses space as a delimiter, rather than commas.
gfadmsr IOhannes