Giter Club home page Giter Club logo

Comments (5)

khoih-prog avatar khoih-prog commented on June 16, 2024

Hi @javos65

Unless you can prove there is a real bug of the library, I'm closing the issue because I don't have time to investigate what's wrong with your code. It's your job to learn why and fix it.

Good programmer is not just sitting passively, relying on other people, when getting into fatal crash. We all can learn a lot from the mistake / experience. I'd appreciate if you can share yours back here what's wrong. If it turns out to be this library's bug, we're happier to find out and fix.

Good Luck,

from portenta_h7_asyncwebserver.

khoih-prog avatar khoih-prog commented on June 16, 2024

FYI, try the

from portenta_h7_asyncwebserver.

javos65 avatar javos65 commented on June 16, 2024

Thanks for the reply.
The used MQTT calls are a 1:1 copy of your MQTTClient_Basic.ino example, same for the Async_AdvancedWebServer.ino example. Seperate sketches work fine.
My example is your 2 example-code combined in one sketch, and combined in one sketch it fails on Mbed OS / Portenta H7.

You dont need to look or debug my code, however if you can show a working combination of the Async_AdvancedWebServer and PubSubClient in one sketch, that would be appreciated (Probably 15 minutes of work to combine you own examples ?)

from portenta_h7_asyncwebserver.

khoih-prog avatar khoih-prog commented on June 16, 2024

I don't like and have interest to do that.

Just a suggestion for you

  1. Async is better working with Async. The examples are just simple demo to show basic usage and don't fully rely on them in your use cases.
  2. Use AsyncMQTT_Generic library, such as these examples as the starting point to merge

You'll sure be much better if successful then.

Good Luck,

from portenta_h7_asyncwebserver.

javos65 avatar javos65 commented on June 16, 2024

This is the right direction - thanks.
AsyncMQTT_Generic is combinable with the Portenta_H7_AsyncWebServer libraries, and seems to work in co-exsistance.
Async is definitely not advisable with the legacy PubSubClient libraries.

Regards - Jay

from portenta_h7_asyncwebserver.

Related Issues (8)

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.