Hi i am new to arduino programming but i have work my self in c# for many years and confuse me the library . i learn to make library in arduino but i can not do this :
string inputString="";
void DoSomething()
{
if(inputString.substring(5,7).equals("-"))
{
//Do Something
}
}
Can anyone help me??
}
pcbbc
July 28, 2020, 2:50pm
2
C/C++ is not C#.
Arduino String reference .
However, for a multitude of reasons, Stings are best avoided on most Arduinos.
If you're going to use Strings, go full blown:
if(inputString.substring(5,7) == "-"))
pcbbc
July 28, 2020, 4:12pm
6
aggelostzitzifas:
Yes that i mean;
You'll need to be more precise about what is not working then.
Perhaps posting a complete sketch might help, in [code]code tags[/code]