Chat freely about anything...

User avatar
By martinayotte
#38867 After receiving some text, you need to implement some kind of command parser which will then execute commands accordingly. Do some google search, I'm pretty sure you will find something.
In the mean time, here is a code snippet assuming that you command is already in buffer :
Code: Select all      if (strcmp(buffer, "command1") == 0) {
        executeCommand1();
      }
      else if (strcmp(buffer, "command2") == 0) {
        executeCommand2();
      }
      else {
        client.println("Invalid Command !");
      }