2

I'm trying to read a text file (has numeric values) from SD card. The values in the file like this

87 512
255 

I need to read 87 in ch1 and 512 in ch2 and 255 in ch3.

Why did I get on 'SKIP_NONE' 'SKIP_WHITESPACE' was not declared in this scope?

int ch1 = in_file.parseInt(SKIP_WHITESPACE);
Serial.printf("First = %d \n",ch1);

int ch2 = in_file.parseInt(SKIP_NONE, '\n'); Serial.printf("Second = %d \n",ch2);

int ch3 = in_file.parseInt(); Serial.printf("Third = %d \n",ch3);

Greenonline
  • 3,152
  • 7
  • 36
  • 48
stella
  • 31
  • 2

1 Answers1

3

These symbols were introduced in the Arduino AVR core 1.6.7, in December 2015. You can find them in Stream.h. They are probably defined in other cores too.

For some reason, the Teensy cores do not define them. You may consider filing an issue in their GitHub project.

Edgar Bonet
  • 45,094
  • 4
  • 42
  • 81