Hi guys,
I'm new to this. I tried to use the NodeMCU to voice control my devices. But it showed up this error when I tried to compile the file.
C:\Users\1367888\Documents\Arduino\Alternative_1\ESP8266_Heroku\ESP8266_Heroku.ino: In function 'void processWebScoketRequest(String)':
ESP8266_Heroku:129: error: expected ',' or ';' before 'String'
String message = "","";
^
ESP8266_Heroku:136: error: 'message' was not declared in this scope
message = "{"state":"ON","number":"ONE"}";
^
ESP8266_Heroku:140: error: 'message' was not declared in this scope
message = "{"state":"OFF","number":"ONE"}";
^
ESP8266_Heroku:148: error: 'message' was not declared in this scope
message = "{"state":"ON","number":"ONE"}";
^
ESP8266_Heroku:150: error: 'message' was not declared in this scope
message = "{"state":"OFF","number":"ONE"}";
^
ESP8266_Heroku:156: error: 'message' was not declared in this scope
Serial.println(message);
^
C:\Users\1367888\Documents\Arduino\Alternative_1\ESP8266_Heroku\ESP8266_Heroku.ino: At global scope:
ESP8266_Heroku:163: error: expected unqualified-id before 'if'
if (query == "cmd") { //if query check state
^
exit status 1
expected ',' or ';' before 'String'