Post by Got Issues on Jan 9, 2018 20:12:23 GMT -8
when I try and load the board i get the following error:
Arduino: 1.8.5 (Windows 10), Board: "Adafruit HUZZAH ESP8266, 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Serial, None, 115200"
SDL_ESP8266_WeatherPlus:177: error: 'WEB_SERVER_PORT' was not declared in this scope
WiFiServer server(WEB_SERVER_PORT);
^
SDL_ESP8266_WeatherPlus:395: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP8266_WeatherPlus:396: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from C:\Users\pete\Documents\OurWeather\SDL_ESP8266_WeatherPlus\SDL_ESP8266_WeatherPlus.ino:113:0:
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h: In function 'bool readWXLink()':
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\Documents\OurWeather\SDL_ESP8266_WeatherPlus\SDL_ESP8266_WeatherPlus.ino: In function 'void setup()':
SDL_ESP8266_WeatherPlus:922: error: 'WEB_SERVER_PORT' was not declared in this scope
Serial.println(WEB_SERVER_PORT);
^
exit status 1
'WEB_SERVER_PORT' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
What did I do wrong?
Arduino: 1.8.5 (Windows 10), Board: "Adafruit HUZZAH ESP8266, 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Serial, None, 115200"
SDL_ESP8266_WeatherPlus:177: error: 'WEB_SERVER_PORT' was not declared in this scope
WiFiServer server(WEB_SERVER_PORT);
^
SDL_ESP8266_WeatherPlus:395: error: 'LOCALMAC' was not declared in this scope
static uint8_t mac[] = LOCALMAC;
^
SDL_ESP8266_WeatherPlus:396: error: 'LOCALIP' was not declared in this scope
static uint8_t ip[] = LOCALIP;
^
In file included from C:\Users\pete\Documents\OurWeather\SDL_ESP8266_WeatherPlus\SDL_ESP8266_WeatherPlus.ino:113:0:
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h: In function 'bool readWXLink()':
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\Wire/Wire.h:70:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)
uint8_t requestFrom(int, int, int);
^
C:\Users\pete\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\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\pete\Documents\OurWeather\SDL_ESP8266_WeatherPlus\SDL_ESP8266_WeatherPlus.ino: In function 'void setup()':
SDL_ESP8266_WeatherPlus:922: error: 'WEB_SERVER_PORT' was not declared in this scope
Serial.println(WEB_SERVER_PORT);
^
exit status 1
'WEB_SERVER_PORT' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
What did I do wrong?