Giter Site home page Giter Site logo

Comments (18)

probonopd avatar probonopd commented on June 23, 2024 2

This is still an issue for me. probonopd/WirelessPrinting#118

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024 1

@kuthullu just add this line into the of one file from src folder

#include <Hash.h>

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

that is platform.io's fault. the library is in the ESP core libs.
One fix is to add #include <Hash.h> in AsyncWebSocket.h

from espasyncwebserver.

kuthullu avatar kuthullu commented on June 23, 2024

I searched the Lins directory and the generated libs for the project, the
file doesn't exist...
On Jun 18, 2016 08:17, "Me No Dev" [email protected] wrote:

that is platform.io's fault. the library is in the ESP core libs.
One fix is to add #include <Hash.h> in AsyncWebSocket.h


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFxkuuOEpFBu0fVFd-5yFGMcfYrgMW6kks5qM9POgaJpZM4I47P3
.

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

https://github.com/esp8266/Arduino/blob/master/libraries/Hash/src/Hash.h

from espasyncwebserver.

kuthullu avatar kuthullu commented on June 23, 2024

It isn't included by default, but explicitly including it on your main.cpp solves the problem... maybe this is worth a note on the docs ? Anyway, thanks for your time, you really helped me

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

it should really be fixed on platform.io side :) it follows Arduino guidelines and should by all means work.
@ivankravets can maybe shed some light?

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

A deep library search is turned off by default. We had it enabled before but a lot of users had the problems with it. The easy way is to include required library in the src files. In this case, PlatformIO will understand that you really need this library, otherwise you can enable http://docs.platformio.org/en/latest/projectconf.html#lib-dfcyclic

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

@ivankravets has to be in one of the headers, correct?

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

can I make a header that will actually not be included in the build and define the required libs there?

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

@me-no-dev no matter. In any place/ in any file (*.c, *.cpp, .h, etc.)

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

it is in the CPP file here

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

@me-no-dev your code is fine. This is a behaviour of PlatformIO 2.0. We are working on the PlatformIO 3.0 where the Library Manager and Library Builder will be significantly refactored.

The one reason why deep finder is turned off is that current Library Builder doesn't handle #ifdef and etc constructions.

Conclusion

  • @me-no-dev you don't need to change your code.
  • @kuthullu please include #include <Hash.h> library manually.

P.S: It should work without any changes with PlatformIO 3.0.

from espasyncwebserver.

fab33 avatar fab33 commented on June 23, 2024

In 3.2.1 it doesn't work. You have to include <Hash.h>

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

@fab33 You can specify extra dependencies for a project using lib_deps option

lib_deps = Hash

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

@me-no-dev do you have any info when new release of ESP8266 for Arduino will be issued?

from espasyncwebserver.

me-no-dev avatar me-no-dev commented on June 23, 2024

@ivankravets asking for 2.4.0? I would rather have it sooner than later, but it depends on Ivan's time and by the looks of it.... it will be maybe January. There are some goals that need to be covered by the end of the year.

from espasyncwebserver.

ivankravets avatar ivankravets commented on June 23, 2024

@me-no-dev Thanks! We will wait for that!

/cc @xoseperez

from espasyncwebserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.