My data that comes from serial looks like this :
void newDataFromMod(char header[],char dataA[], char dataB[])
if (strcmp (header,"setMo") == 0)
// and more conditions here
How would i go with this and make a state machine of Switch-Case ?
I know that when Switch case you compare using:
switch( command )
{
case 'MOD':
But i have a chars array so i need to compare using strcmp , so how would you do the "case" comparison?
thanks a lot.