Coder Social home page Coder Social logo

Comments (6)

mobizt avatar mobizt commented on May 24, 2024 1

I also don't understand why well known dev don't care about naming.

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

I fixed for missing time.h header file. Please update the library.

from firebase-esp8266.

Gizmodo avatar Gizmodo commented on May 24, 2024

PlatformIO still see old version 2.3.1 (issue platformio/platformio-api#23).
I tried to apply your commit manually, but the error still here.

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

Actually time.h is in the core library. Any third party libraries contained time.h?

Check and search third party lib for time.h, temporary remove it or update platformio again.

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

The code that you've got the error is just for get NTP server time.
This required for BearSSL/axTLS SSL/TLS handshake process.
If you can't run the below code, the problem may come from time.h include file conflicts.

    configTime(3 * 3600, 0, "pool.ntp.org", "time.nist.gov");
    time_t now = time(nullptr);
    while (now < 8 * 3600 * 2)
    {
        delay(100);
        now = time(nullptr);
    }

    struct tm timeinfo;
    gmtime_r(&now, &timeinfo);

This issue caused by duplicate time.h from other libraries. Please read this and this.

from firebase-esp8266.

Gizmodo avatar Gizmodo commented on May 24, 2024

Thank you. The problem was with https://github.com/PaulStoffregen/Time library. It has Time.h.
I renamed it to TimeLib.h and build succeessfuly.
P.S. Arduino IDE does not have this problem with 2.3.1.

from firebase-esp8266.

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.