Időjárásállomás és ESP8266 hiba - kód nem fordul le...
Elküldve: 2017. április 22. szombat, 16:46
Sziasztok!
Kezdo vagyok meg es a neten talaltam egy idojaras allomast esp8266-al, tft kijelzovel.
Igazabol a program forditasaval lenne gondom. Utana neztem a neten de semmi ertekelhetot nem talaltam a hibaval kapcsolatban.
Ez a hiba amikor lefut a forditas :
WeatherForecast_F:39: error: 'WiFiClient' does not name a type
WiFiClient client;
^
/home/nukee/Arduino/WeatherForecast_F/WeatherForecast_F.ino: In function 'void setup()':
WeatherForecast_F:61: error: 'WiFi' was not declared in this scope
WiFi.begin(ssid, password);
^
WeatherForecast_F:68: error: 'WL_CONNECTED' was not declared in this scope
while (WiFi.status() != WL_CONNECTED) {
^
/home/nukee/Arduino/WeatherForecast_F/WeatherForecast_F.ino: In function 'void getWeatherData()':
WeatherForecast_F:93: error: 'client' was not declared in this scope
if (client.connect(servername, 80)) { //starts client connection, checks for connection
^
WeatherForecast_F:105: error: 'client' was not declared in this scope
while(client.connected() && !client.available()) delay(1); //waits for data
^
WeatherForecast_F:109: error: 'client' was not declared in this scope
while (client.connected() || client.available()) { //connected or data available
^
WeatherForecast_F:114: error: 'client' was not declared in this scope
client.stop(); //stop client
^
Multiple libraries were found for "ArduinoJson.h"
Használt: /home/nukee/Arduino/libraries/ArduinoJson-master
Nem használt: /home/nukee/Arduino/libraries/ArduinoJson-5.8.4
exit status 1
'WiFiClient' does not name a type
Es ennyi..
be van toltve a :
#include <ArduinoJson.h>
#include <Adafruit_ST7735.h>
#include <Adafruit_GFX.h>
es igy se!
valakinek otlete?
Koszi es udv
Kezdo vagyok meg es a neten talaltam egy idojaras allomast esp8266-al, tft kijelzovel.
Igazabol a program forditasaval lenne gondom. Utana neztem a neten de semmi ertekelhetot nem talaltam a hibaval kapcsolatban.
Ez a hiba amikor lefut a forditas :
WeatherForecast_F:39: error: 'WiFiClient' does not name a type
WiFiClient client;
^
/home/nukee/Arduino/WeatherForecast_F/WeatherForecast_F.ino: In function 'void setup()':
WeatherForecast_F:61: error: 'WiFi' was not declared in this scope
WiFi.begin(ssid, password);
^
WeatherForecast_F:68: error: 'WL_CONNECTED' was not declared in this scope
while (WiFi.status() != WL_CONNECTED) {
^
/home/nukee/Arduino/WeatherForecast_F/WeatherForecast_F.ino: In function 'void getWeatherData()':
WeatherForecast_F:93: error: 'client' was not declared in this scope
if (client.connect(servername, 80)) { //starts client connection, checks for connection
^
WeatherForecast_F:105: error: 'client' was not declared in this scope
while(client.connected() && !client.available()) delay(1); //waits for data
^
WeatherForecast_F:109: error: 'client' was not declared in this scope
while (client.connected() || client.available()) { //connected or data available
^
WeatherForecast_F:114: error: 'client' was not declared in this scope
client.stop(); //stop client
^
Multiple libraries were found for "ArduinoJson.h"
Használt: /home/nukee/Arduino/libraries/ArduinoJson-master
Nem használt: /home/nukee/Arduino/libraries/ArduinoJson-5.8.4
exit status 1
'WiFiClient' does not name a type
Es ennyi..
be van toltve a :
#include <ArduinoJson.h>
#include <Adafruit_ST7735.h>
#include <Adafruit_GFX.h>
es igy se!
valakinek otlete?
Koszi es udv