error in IDE

8 years 11 months ago #2603 by geozar
error in IDE was created by geozar
Hi i get this error after i reinstall arduino ide could anybody help me with this?

Arduino: 1.6.6 (Windows 10), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)"

Warning: platform.txt from core 'ESP8266 Modules' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library ESP8266httpUpdate is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Hash is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Ticker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
C:\Users\Geo\Desktop\EasyIoT-Cloud-master\ESP8266_DHT22_humidity_sensor_REST\ESP8266_DHT22_humidity_sensor_REST.ino: In function 'void setup()':

ESP8266_DHT22_humidity_sensor_REST:43: error: 'wifiConnect' was not declared in this scope

wifiConnect();

^

C:\Users\Geo\Desktop\EasyIoT-Cloud-master\ESP8266_DHT22_humidity_sensor_REST\ESP8266_DHT22_humidity_sensor_REST.ino: In function 'void loop()':

ESP8266_DHT22_humidity_sensor_REST:70: error: 'sendTeperature' was not declared in this scope

sendTeperature(temp);

^

ESP8266_DHT22_humidity_sensor_REST:76: error: 'sendHumidity' was not declared in this scope

sendHumidity(hum);

^

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

Invalid library found in C:\Users\Geo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266: C:\Users\Geo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266
Invalid library found in C:\Users\Geo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266: C:\Users\Geo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266

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

Please Log in or Create an account to join the conversation.

8 years 11 months ago - 8 years 11 months ago #2606 by BadBallscrewBob
Replied by BadBallscrewBob on topic error in IDE
10/12/15 Do not update cores beyond the ones listed below. I tried last night and ran into issues that took a couple of hours to fix. Also tried the nightly builds of the IDE itself and on 1.6.6 and 1.6.7 the issues are all still present including circular updates for libraries.

First things first.

Get rid of 1.6.6 and go back to 1.6.5
I spent over a week "struggling" to get almost any ESP project running under 1.6.6.

By getting rid I also mean TOTALLY !

First off uninstall the IDE as normal
Next delete the Arduino folder under the Users\yourname\AppData\Local\Arduino if it exists.
Next delete the Arduino folder under the Users\yourname\Application Data\ and delete Arduino folders if they exist.
(NOTE) you should be logged in as a FULL admin to get to these or use "Take Ownership" to get access.

Double check for any leftovers and if you have your Libraries or sketches elsewhere then either archive or delete (your choice but delete worked better for me) Certainly delete the Libraries folder from inside the sketches folder at the very least.
I use two folders for Sketches. One is separate and I only put fully working sketches ready for deployment in there and just use the regular sketches folder for the examples and WIP.

If you have a decent registry cleaner use it at this point. I used the "Wise Registry Cleaner" and Let it do its thing.

Now reboot

Install 1.6.5 as per normal and make any personal changes at this point,
Now shoot over to iot-playground.com/2-uncategorised/67-arduino-esp8266-ide and follow the instructions there (dont get sidetracked)
You should have a stable Arduino IDE with ESP board manager now enabled.

DONT just dump all your past libraries back in to the libs folder as that may also cause issues and you will be back to square one !

Take an ESP / Arduino and use a simple blink sketch to it just to be sure everything is OK and if not make any minor adjustments at this point but do not go throwing libs around.
If its all good you can start getting a little more adventurous with ESP projects.

At this point it may be worth updating the "cores". You do this from the "Board Manager" in the IDE. Just select the "More Info" option for the boards you are using and if there is an update take it. I currently have 1.6.9 for Arduino cores and 1.6.5-947 for ESP's (These are NOT the IDE numbers !)

If like me you are just using the generic ESP's then heads up that some of the newer ones (usually black in colour) have a little more memory and you may have to account for that in the IDE setup for the board.

I need to select Flash Size: "1M (512K SPIFFS)" as that was what the test sketch for ESP configuration told me I had.

Hopefully by this point you are able to flash and run programs. the newer ESP,s also don't need much to flash either. I just used this one and it works everytime for the newer ones.

importhack.wordpress.com/2014/11/22/how-...a-sensor-web-client/

Built mine with a switch and a few headers so I can play before I commit to a bulld.

The reason for all your errors is a bug in 1.6.6 and the way it handles library names. I found it by accident and asked a question on the Arduino forum. One of the senior members spotted it as I was getting Library updates offered over and over again and despite taking them all it still kept offering.

He has submitted it for a bug fix but until then 1.6.5 is your best friend.

Do unto others before they get chance to scr3w you over
Attachments:
The following user(s) said Thank You: EasyIoT, Turf1975

Please Log in or Create an account to join the conversation.

8 years 11 months ago #2615 by EasyIoT
Replied by EasyIoT on topic error in IDE

BadBallscrewBob wrote: First things first.

Get rid of 1.6.6 and go back to 1.6.5
I spent over a week "struggling" to get almost any ESP project running under 1.6.6.

By getting rid I also mean TOTALLY !

First off uninstall the IDE as normal
Next delete the Arduino folder under the Users\yourname\AppData\Local\Arduino if it exists.
Next delete the Arduino folder under the Users\yourname\Application Data\ and delete Arduino folders if they exist.
Double check for any leftovers and if you have your Libraries or sketches elsewhere then either archive or delete (your choice but delete worked better for me) Certainly deleye the Libraries folder from inside the sketches folder at the very least.
If you have a decent registry cleaner use it at this point. I used the "Wise Registry Cleaner" and Let it do its thing.

Now reboot

Install 1.6.5 as per normal and make any personal changes at this point,
Now shoot over to learn.sparkfun.com/tutorials/esp8266-thi...sp8266-arduino-addon and follow the instructions there (dont get sidetracked)
You should have a stable Arduino IDE with ESP board manager now enabled.

DONT just dump all your past libraries back in to the libs folder as that may also cause issues.

Take an ESP and use a simple blink sketch to it just to be sure everything is OK and if not make any minor adjustments at this point but do not go throwing libs around.
If its all good you can start getting a little more adventurous with ESP projects.

If like me you are just using the generic ESP's then heads up that some of the newer ones (usually black in colour) have a little more memory and you may have to account for that in the IDE setup for the board.

I need to select Flash Size: "1M (512K SPIFFS)" as that was what the test sketch for ESP configuration told me I had.

Hopefully by this point you are able to flash and run programs. the newer ESP,s also dont need much to flash either. I just used this one and it works everytime for the newer ones.

importhack.wordpress.com/2014/11/22/how-...a-sensor-web-client/

Built mine with a switch and a few headers so I can play before I commit to a bulld.

The reason for all your errors is a bug in 1.6.6 and the way it handles librariy names. I found it by accident and asked a question on the Arduino forum. One of the senior members spotted it as I was getting Library updates offered over and over again and despite taking them all it still kept offering.

He has submitted it for a bug fix but ubntil then 1.6.5 is your best friend.


Thank you fr your answer. It looks like a lot of people have this problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.168 seconds

Forum latest

  • No posts to display.