Help get this topic noticed by sharing it on Twitter, Facebook, or email.
TextFinder works fine with NewSoftSerial. If you are having problems, check that you are using the latest versions of both libraries. I tested with NewSoftSerial version 10 and TextFinder from the Arduino playground: http://www.arduino.cc/playground/Code...
with Arduino releases 21 and 22 using the following sketch:
* NewSoftSerial example with textFinder
* This code expects a message in the format: H 12,-345,678!
NewSoftSerial mySerial(2, 3);
const int NUMBER_OF_FIELDS = 3; // how many comma seperated fields we expect
int values[NUMBER_OF_FIELDS]; // array holding values for all the fields
mySerial.begin(9600); // Initialize nss port to send and receive at 9600 baud
int fieldIndex = 0; // the current field being received
while(fieldIndex < NUMBER_OF_FIELDS)
values[fieldIndex++] = finder.getValue();
mySerial.println("All fields received:");
for(fieldIndex=0; fieldIndex < NUMBER_OF_FIELDS; fieldIndex++)
You can run the sketch I posted above using the NewSoftSerial library from here: http://rogue-code.googlecode.com/file...
BTW, there is a newer version of NewSoftSerial in that is available as a beta release from here: http://arduiniana.org/2011/01/newsoft...
I expect that this version will replace the old SoftwareSerial library in future Arduino releases which is why the library name in that distribution has changed from NewSoftSerial to SoftwareSerial. To use this beta version, replace the SoftwareSerial in the Arduino Libraries directory with the newsoftSerial-11-beta code and change the first few lines of the sketch as follows:
#include "SoftwareSerial.h" // was NewSoftSerial.h
SoftwareSerial mySerial(2, 3); // was NewSoftSerial