Stazione Meteo Internet Wemos Mini

Sorgente.zip (3.4 KB)
Da questo sito ho scaricato un sogerte per realizzare una stazione meteo usando un Wemos ma mi da degli erroi nella compilazione ho allegato il file sorgente lerrore è questo:
V1:25:1: error: expected ',' or ';' before 'void'
25 | void setup()
| ^~~~

L'errore mi sembra ben evidente e te lo dice chiaramente ... manca il ; prima del void setup() e, difatti, se vai nella riga precedente ...

String NameOfCity = "put the name of the city you will like to get data for here" //e.g Lagos, NG if your city is Lagos in Nigeria. 

Guglielmo

P.S.: Cortesemente, per le prossime volte, i sorgenti li metti facendo copia/incolla, formattando bene il codice e racchiudendolo negli appositi tag CODE. Vd. REGOLAMENTO punto 17.2 e NON come.zip che uno deve scaricare, scompattare, ecc. ecc.

Grazie! Non ho postato tutto il codice perchè è troppo lungo comunque le righe kle ho corrette.
Prima:

String NameOfCity = "put the name of the city you will like to get data for here" //e.g Lagos, NG if your city is Lagos in Nigeria.  
void setup()

Dopo:

String NameOfCity = "put the name of the city you will like to get data for here"; //e.g Lagos, NG if your city is Lagos in Nigeria.  
void setup()

Adesso funziona il codice.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.