Post by Kreon on Sept 11, 2013 0:40:40 GMT -8
Hey there,
I have loaded the ArduinoConnect server. then I opened the ArduinoConnectServer.ino with Arduino 1.0.5. When I try to upload the code to the Arduino, I get a lot of errors. What can I do?
Here is the error message:
I have loaded the ArduinoConnect server. then I opened the ArduinoConnectServer.ino with Arduino 1.0.5. When I try to upload the code to the Arduino, I get a lot of errors. What can I do?
Here is the error message:
In file included from ArduinoConnectServer.ino:46:
/ExecuteJSONCommand.h:8:58: warning: missing terminating ' character
In file included from ArduinoConnectServer.ino:46:
ExecuteJSONCommand.h:8: error: missing terminating ' character
In file included from ArduinoConnectServer.ino:9:
/WebServer.h:147: warning: 'typedef' was ignored in this declaration
/WebServer.h: In constructor 'WebServer::WebServer(const char*, int)':
/WebServer.h:298: warning: 'WebServer::m_cmdCount' will be initialized after
/WebServer.h:287: warning: 'int WebServer::m_contentLength'
/WebServer.h:324: warning: when initialized here
/WebServer.h: In member function 'void WebServer::addCommand(const char*, void (*)(WebServer&, WebServer::ConnectionType, char*, bool))':
/WebServer.h:353: warning: comparison between signed and unsigned integer expressions
/WebServer.h:355: warning: array subscript has type 'char'
/WebServer.h:356: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::printP(const prog_uchar*)':
/WebServer.h:409: warning: suggest parentheses around assignment used as truth value
/WebServer.h: In member function 'bool WebServer::dispatchCommand(WebServer::ConnectionType, char*, bool)':
/WebServer.h:435: warning: deprecated conversion from string constant to 'char*'
/WebServer.h:464: warning: array subscript has type 'char'
/WebServer.h:464: warning: comparison between signed and unsigned integer expressions
/WebServer.h:465: warning: array subscript has type 'char'
/WebServer.h:469: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::httpFail()':
/WebServer.h:555: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::noRobots(WebServer::ConnectionType)':
/WebServer.h:578: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::favicon(WebServer::ConnectionType)':
/WebServer.h:588: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpUnauthorized()':
/WebServer.h:595: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpServerError()':
/WebServer.h:608: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpSuccess(const char*, const char*)':
/WebServer.h:621: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpSeeOther(const char*)':
/WebServer.h:637: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'int WebServer::read()':
/WebServer.h:712: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::push(int)':
/WebServer.h:721: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::outputCheckboxOrRadio(const char*, const char*, const char*, const char*, bool)':
/WebServer.h:1126: warning: only initialized variables can be placed into program memory area
/WebServer.h:1127: warning: only initialized variables can be placed into program memory area
/WebServer.h:1128: warning: only initialized variables can be placed into program memory area
/WebServer.h:1129: warning: only initialized variables can be placed into program memory area
/WebServer.h:1130: warning: only initialized variables can be placed into program memory area
/WebServer.h:1131: warning: only initialized variables can be placed into program memory area
/WebServer.h:1132: warning: only initialized variables can be placed into program memory area
In file included from ArduinoConnectServer.ino:44:
/smallJSON.h: In function 'void run_command(char*, char*, currentObjectStructure*)':
/smallJSON.h:393: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:400: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:407: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:414: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:420: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:427: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:434: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:441: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:384: warning: unused variable 'name_size'
In file included from ArduinoConnectServer.ino:46:
/ExecuteJSONCommand.h: At global scope:
ExecuteJSONCommand.h:1: error: 'EASY' does not name a type
ArduinoConnectServer.ino: In function 'void jsonCmd(WebServer&, WebServer::ConnectionType, char*, bool)':
ArduinoConnectServer:79: error: 'initParsedObject' was not declared in this scope
ArduinoConnectServer:120: error: 'ExecuteCommandAndReturnJSONString' was not declared in this scope
ArduinoConnectServer.ino: In function 'void setup()':
ArduinoConnectServer.ino:148: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:150: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:151: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:152: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:153: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:154: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer:156: error: 'p' was not declared in this scope
ArduinoConnectServer.ino:173: warning: deprecated conversion from string constant to 'char*'
/ExecuteJSONCommand.h:8:58: warning: missing terminating ' character
In file included from ArduinoConnectServer.ino:46:
ExecuteJSONCommand.h:8: error: missing terminating ' character
In file included from ArduinoConnectServer.ino:9:
/WebServer.h:147: warning: 'typedef' was ignored in this declaration
/WebServer.h: In constructor 'WebServer::WebServer(const char*, int)':
/WebServer.h:298: warning: 'WebServer::m_cmdCount' will be initialized after
/WebServer.h:287: warning: 'int WebServer::m_contentLength'
/WebServer.h:324: warning: when initialized here
/WebServer.h: In member function 'void WebServer::addCommand(const char*, void (*)(WebServer&, WebServer::ConnectionType, char*, bool))':
/WebServer.h:353: warning: comparison between signed and unsigned integer expressions
/WebServer.h:355: warning: array subscript has type 'char'
/WebServer.h:356: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::printP(const prog_uchar*)':
/WebServer.h:409: warning: suggest parentheses around assignment used as truth value
/WebServer.h: In member function 'bool WebServer::dispatchCommand(WebServer::ConnectionType, char*, bool)':
/WebServer.h:435: warning: deprecated conversion from string constant to 'char*'
/WebServer.h:464: warning: array subscript has type 'char'
/WebServer.h:464: warning: comparison between signed and unsigned integer expressions
/WebServer.h:465: warning: array subscript has type 'char'
/WebServer.h:469: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::httpFail()':
/WebServer.h:555: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::noRobots(WebServer::ConnectionType)':
/WebServer.h:578: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::favicon(WebServer::ConnectionType)':
/WebServer.h:588: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpUnauthorized()':
/WebServer.h:595: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpServerError()':
/WebServer.h:608: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpSuccess(const char*, const char*)':
/WebServer.h:621: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'void WebServer::httpSeeOther(const char*)':
/WebServer.h:637: warning: only initialized variables can be placed into program memory area
/WebServer.h: In member function 'int WebServer::read()':
/WebServer.h:712: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::push(int)':
/WebServer.h:721: warning: array subscript has type 'char'
/WebServer.h: In member function 'void WebServer::outputCheckboxOrRadio(const char*, const char*, const char*, const char*, bool)':
/WebServer.h:1126: warning: only initialized variables can be placed into program memory area
/WebServer.h:1127: warning: only initialized variables can be placed into program memory area
/WebServer.h:1128: warning: only initialized variables can be placed into program memory area
/WebServer.h:1129: warning: only initialized variables can be placed into program memory area
/WebServer.h:1130: warning: only initialized variables can be placed into program memory area
/WebServer.h:1131: warning: only initialized variables can be placed into program memory area
/WebServer.h:1132: warning: only initialized variables can be placed into program memory area
In file included from ArduinoConnectServer.ino:44:
/smallJSON.h: In function 'void run_command(char*, char*, currentObjectStructure*)':
/smallJSON.h:393: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:400: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:407: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:414: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:420: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:427: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:434: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:441: warning: deprecated conversion from string constant to 'char*'
/smallJSON.h:384: warning: unused variable 'name_size'
In file included from ArduinoConnectServer.ino:46:
/ExecuteJSONCommand.h: At global scope:
ExecuteJSONCommand.h:1: error: 'EASY' does not name a type
ArduinoConnectServer.ino: In function 'void jsonCmd(WebServer&, WebServer::ConnectionType, char*, bool)':
ArduinoConnectServer:79: error: 'initParsedObject' was not declared in this scope
ArduinoConnectServer:120: error: 'ExecuteCommandAndReturnJSONString' was not declared in this scope
ArduinoConnectServer.ino: In function 'void setup()':
ArduinoConnectServer.ino:148: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:150: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:151: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:152: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:153: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer.ino:154: warning: only initialized variables can be placed into program memory area
ArduinoConnectServer:156: error: 'p' was not declared in this scope
ArduinoConnectServer.ino:173: warning: deprecated conversion from string constant to 'char*'