Giter Club home page Giter Club logo

Comments (4)

nqd avatar nqd commented on July 30, 2024

for mqtt example, i donot see the error you reported. For quick fix: make sure you see the following line at apps/mqtt/mqtt.c

unsigned char *default_certificate;
unsigned int default_certificate_len = 0;
unsigned char *default_private_key;
unsigned int default_private_key_len = 0;

Thanks for reporting json example error. Please pull the last commit, and give it a try.

from esp8266-dev.

frco9 avatar frco9 commented on July 30, 2024

Ok, json example is now fixed.
And indeed I had removed from mqtt.c these lines :

unsigned int default_certificate_len = 0;
unsigned int default_private_key_len = 0;

Now it works fine.

But it brings me to another issue, if I want to use both mqtt and fota in a project, default_certificate_len and default_private_key_len are both defined in mqtt.c and fota.c which leads to an error.

from esp8266-dev.

nqd avatar nqd commented on July 30, 2024

Yes, this annoying comes from ssl lib for server side, although we do not enable this function. To easy fix this problem: remove default_* from both mqtt.c and fota.c, define them in main.c

from esp8266-dev.

frco9 avatar frco9 commented on July 30, 2024

Well quick dirty fix, but it works.
Thanks.

from esp8266-dev.

Related Issues (13)

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.