Go Down

Topic: Error with the TextFinder library (Read 651 times) previous topic - next topic


Code: [Select]

#include <TextFinder.h>

TextFinder  finder(Serial); 
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

void setup()
  Serial.begin(9600); // Initialize serial port to send and receive at 9600 baud

void loop()
  int fieldIndex = 0;            // the current field being received
  while(fieldIndex < NUMBER_OF_FIELDS)
    values[fieldIndex++] = finder.getValue();     
  Serial.println("All fields received:");
  for(fieldIndex=0; fieldIndex < NUMBER_OF_FIELDS; fieldIndex++)

I have imported the TextFinder libary to the Arduino but there is these errors i dont know how to solve:
The error says TextFinder does not name a type.
in function void loop()
finder was not declared in this scope.


Standard questions when a library does not work

Where exactly did you put the library files ?
What is the name of the library folder ?
Did you stop and restart the IDE after installing the library ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up