0

I have a string value 'func1/50/70'

I need to parse it so that I have 'func1' as a string and both 50 and 70 as int values.

Can any C++, arduino experts help?

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Bachalo
  • 6,965
  • 27
  • 95
  • 189

1 Answers1

0

I'm not sure what Arduino C allows. In C++ you can try std::find, that can return a pointer to something to be found. In this case you'd try to find the "/"

Ben
  • 2,065
  • 1
  • 13
  • 19