0 votes
in Touch Interface by (120 points)

While trying to upload to the esp8266 I get the following error coming from the esp8266-weather-station-color.ini file in the sketch.

The error is on line 337, and it is in the "clock draw" function.

This is my error:

Arduino: 1.6.8 (Windows 10), Board: "WeMos D1 mini Pro, 80 MHz, 16M (15M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

G:\Documents\Arduino\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino: In function 'void drawTime()':

esp8266-weather-station-color:337: error: 'drawWifiQuality' was not declared in this scope



exit status 1
'drawWifiQuality' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I really don't know what I'm doing, but I assume the error is because I might not have my compiler setup right in the arduino ide or maybe I'm missing a library or something?

I have a hard time thinking the error is in the code.

Any help would be appreciated.

2 Answers

0 votes
by (14.6k points)
Do you see that `drawWifiQuality` is actually there in your source? It should be right there in the same .ino file: https://github.com/ThingPulse/esp8266-weather-station-color/blob/master/esp8266-weather-station-color.ino#L486
by (120 points)
Yes its there.  drawWifiQaulity shows up twice. Once on line 337 and then again around line 485.
0 votes
by (3.6k points)
This is indicative of a programme structure fault usually braces { } that are not closed and somewhere where it's been modified. Assuming the 'drawWifiQuality' is there.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.