Salve a tutti.
Come noterete sono un neofita ma con tanta voglia di imparare.
Sto cercando di realizzare un progetto per telecomandare a distanza una serie di relè tramite Arduino e relativa scheda sim800L.
Ho la scheda Arduino nano appena acquistata e funziona.
Ho acquistato anche il modulo SIM800L EVB la relativa sim card della Wind.
Alimentando il modulino dopo pochi secondi in base al lampeggio vedo che aggancia la rete ed è pronto a funzionare (gia provato a interaggire con cellu).
Il problema che ho è nella compilazione dello Sketch ancor prima di caricarlo su Arduino.
La libreria scaricata è SIM908IDE100.zip, a quanto pare è un problema legato a uno o piu file di libreria ma non so come risolverlo.
Visto che ho installato Arduino IDE da circa un mese, forse mi manca una qualche libreria che non si trova nel pacchetto scaricato...ma non so quale.
C'è qualcuno che sa come risolvere?
Provo a copiare il report degli errori:
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::configandwait(char*)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:74:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
while (_tf.find("+CGREG: 0,")) // CHANGE!!!!
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'virtual int SIMCOM900::read(char*, int)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:105:53: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
charget=_tf.getString("","",result, resultlength);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:105:53: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::readCellData(int&, int&, long int&, long int&)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:127:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!_tf.find("+QENG:"))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:135:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.find("OK");
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:137:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.find("OK");
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'boolean SIMCOM900::readSMS(char*, int, char*, int)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:151:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(_tf.find("+CMGL: "))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:154:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.getString("\"+", "\"", number, nlength);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:154:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:155:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.getString("\n", "\nOK", msg, msglength);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:155:47: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:157:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.find("OK");
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'boolean SIMCOM900::readCall(char*, int)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:172:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(_tf.find("+CLIP: \""))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:174:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.getString("", "\"", number, nlength);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:174:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::setPIN(char*)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:212:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!_tf.find("OK"))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::changeNSIPmode(char)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:229:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!_tf.find("OK")) return 0;
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::getCCI(char*)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:248:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.getString("AT+QCCID\r\r\r\n","\r\n",cci, 21);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:248:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:251:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!_tf.find("OK"))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp: In member function 'int SIMCOM900::getIMEI(char*)':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:268:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
_tf.getString("AT+GSN\r\r\r\n","\r\n",imei, 15);
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:268:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\SIM900.cpp:271:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!_tf.find("OK"))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\inetGSM.cpp: In member function 'int InetGSM::dettachGPRS()':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\inetGSM.cpp:263:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(!gsm._tf.find("OK"))
^
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\inetGSM.cpp: In member function 'boolean InetGSM::connectedClient()':
C:\Program Files (x86)\Arduino\libraries\SIM908IDE100\inetGSM.cpp:438:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(gsm._tf.find("CONNECT OK"))
Grazie