Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Manti
#40763
martinayotte wrote:Your Arduino ESP framework is maybe too old, this Basic Authentication code has been added on Nov 29,
https://github.com/esp8266/Arduino/comm ... af32d7ccf7


thnx,
I reinstalled the IDE and got all new libraries from github, I seems to solve this problem.

but got: https://github.com/esp8266/Arduino/issues/1502 as a replacement error
User avatar
By NailBuster
#40786 I've recently used 1.6.5 and using boards manager to download esp8266 staging version with success.

just make sure that you've remove any old esp8266 folders/libraries that may be in your paths....
User avatar
By Manti
#40803 Ill got to try 1.6.5. then,

Just installed 1.6.7. from scratch. Also installed the boards via the boardmanager. (http://arduino.esp8266.com/stable/packa ... index.json)
Ive als put the libraries from github in arduino/libraries.

I got the following:
Code: Select all~Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFiAP.cpp: In member function 'bool ESP8266WiFiAPClass::softAPConfig(IPAddress, IPAddress, IPAddress)':

~Documents\Arduino\libraries\ESP8266WiFi\src\ESP8266WiFiAP.cpp:218:45: error: 'wifi_softap_set_dhcps_lease_time' was not declared in this scope

     if(!wifi_softap_set_dhcps_lease_time(720)) {

                                             ^

Multiple libraries were found for "DNSServer.h"
 Used: ~Documents\Arduino\libraries\DNSServer
 Not used: ~AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\DNSServer
Multiple libraries were found for "ESP8266WiFi.h"
 Used: ~Documents\Arduino\libraries\ESP8266WiFi
 Not used: ~AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi
Multiple libraries were found for "ESP8266mDNS.h"
 Used: ~Documents\Arduino\libraries\ESP8266mDNS
 Not used: ~AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266mDNS
exit status 1
Error compiling.


When I remove the github libraries i get the old error again.
Code: Select all~\Documents\Arduino\libraries\myWebServer-master\myWebServer.cpp: In function 'bool isAdmin()':

~\Documents\Arduino\libraries\myWebServer-master\myWebServer.cpp:196:14: error: 'class ESP8266WebServer' has no member named 'authenticate'

  if (!server.authenticate(ConfigUsername.c_str(), ConfigPassword.c_str()))

              ^

~\Documents\Arduino\libraries\myWebServer-master\myWebServer.cpp:198:10: error: 'class ESP8266WebServer' has no member named 'requestAuthentication'

   server.requestAuthentication();

          ^

~\Documents\Arduino\libraries\myWebServer-master\myWebServer.cpp: In member function 'void MyWebServerClass::begin()':

~\Documents\Arduino\libraries\myWebServer-master\myWebServer.cpp:660:7: error: 'class ESP8266WiFiClass' has no member named 'setAutoReconnect'

  WiFi.setAutoReconnect(true);

       ^

exit status 1
Error compiling.


so this could be because me having 1.6.7 installed?