To compare the string received with your command you can´t use ==, use strcmp instead like this. 1 2 3. if(strcmp(buffer,"on")==0) { //do something } ...
確定! 回上一頁