|
Post by juliwood on Nov 1, 2018 11:46:58 GMT -8
Hi I am trying to upload the sofware into the WeatherPlus board, but I got the error "WEB_SERVER_PORT" not defined in this scope". (Complete error log from Arduino IDE pasted below). I did not modify anything at the code, just trying to upload it "to see what happends" Previously I did the two examples at www.switchdoc.com/inexpensive-ftdi-cable-for-arduino-esp8266-includes-usb-cable/and i got no problems to upload the code and the board seems to connect perfectly to WIFI network. I guess that on SDL_ESP8266_WeatherPlus, i must include my wifi data (network and password), and other stuff, like the ID from weatherunderground, am I right? I am using the last version from Arduino IDE (1.8.7) and the last version from the code at GitHub (says Version 033 August 2018, but according to Github readme, shoud be 34) By the way, I think you shoud improve the documentation, specially regarding wich parts of the code you have to modify. There is a great description of each component of the board, but a link to Github (specially when the readme is only a log of the different versions) might be not enought for people who are starting. It would help to know what needs to be modified, and where (such SSID, password, weatherunderground ID....etc.) Thanks ------------------------------------------------------------------------------------------ A rduino:1.8.7 (Windows 10), Tarjeta:"Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
SDL_ESP8266_WeatherPlus_v1:196:19: error: 'WEB_SERVER_PORT' was not declared in this scope
WiFiServer server(WEB_SERVER_PORT);
^
SDL_ESP8266_WeatherPlus_v1:544:24: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP8266_WeatherPlus_v1:545:23: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from C:\Users\JFF\Documents\Arduino\SDL_ESP8266_WeatherPlus_v1\SDL_ESP8266_WeatherPlus_v1.ino:129:0:
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h: In function 'bool readWXLink()':
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
exit status 1
'WEB_SERVER_PORT' was not declared in this scope
|
|
|
Post by juliwood on Nov 1, 2018 13:45:56 GMT -8
SOLVED.... Sorry, I saw other posts with the same issue. Changing the name of the folder did not fix the problem, but putting all library files in the same folder than the .ino file did. Probably was not necessary, only was because for some reason the main code cant not find the config files, but at least for me it worked. Hi I am trying to upload the sofware into the WeatherPlus board, but I got the error "WEB_SERVER_PORT" not defined in this scope". (Complete error log from Arduino IDE pasted below). I did not modify anything at the code, just trying to upload it "to see what happends" Previously I did the two examples at www.switchdoc.com/inexpensive-ftdi-cable-for-arduino-esp8266-includes-usb-cable/and i got no problems to upload the code and the board seems to connect perfectly to WIFI network. I guess that on SDL_ESP8266_WeatherPlus, i must include my wifi data (network and password), and other stuff, like the ID from weatherunderground, am I right? I am using the last version from Arduino IDE (1.8.7) and the last version from the code at GitHub (says Version 033 August 2018, but according to Github readme, shoud be 34) By the way, I think you shoud improve the documentation, specially regarding wich parts of the code you have to modify. There is a great description of each component of the board, but a link to Github (specially when the readme is only a log of the different versions) might be not enought for people who are starting. It would help to know what needs to be modified, and where (such SSID, password, weatherunderground ID....etc.) Thanks ------------------------------------------------------------------------------------------ A rduino:1.8.7 (Windows 10), Tarjeta:"Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
SDL_ESP8266_WeatherPlus_v1:196:19: error: 'WEB_SERVER_PORT' was not declared in this scope
WiFiServer server(WEB_SERVER_PORT);
^
SDL_ESP8266_WeatherPlus_v1:544:24: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP8266_WeatherPlus_v1:545:23: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from C:\Users\JFF\Documents\Arduino\SDL_ESP8266_WeatherPlus_v1\SDL_ESP8266_WeatherPlus_v1.ino:129:0:
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h: In function 'bool readWXLink()':
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\JFF\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire/Wire.h:64:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)
size_t requestFrom(uint8_t address, size_t size, bool sendStop);
^
exit status 1
'WEB_SERVER_PORT' was not declared in this scope
|
|
|
Post by SDL on Nov 6, 2018 14:26:28 GMT -8
Phhtt. Time for a restructure of the code due to the ever, ever, changing Arduino IDE>
Glad you got it running.
BP
|
|