Arduino Forum

Using Arduino => Programming Questions => Topic started by: kokhwee1993 on Dec 14, 2013, 09:52 am

Title: Error with the TextFinder library
Post by: kokhwee1993 on Dec 14, 2013, 09:52 am
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.

Title: Re: Error with the TextFinder library
Post by: UKHeliBob on Dec 14, 2013, 09:58 am
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 ?