Comments (5)
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.
FYI, try the
- MQTTClient_Auth
- MQTTClient_Basic
which are using the samePubSubClient
library
from portenta_h7_asyncwebserver.
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.
I don't like and have interest to do that.
Just a suggestion for you
- 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.
- 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.
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)
- PortentaH7 WiFi can you explain why it doesn't work on the M4 core HOT 3
- Weird HTTP_POST hangup HOT 1
- Unable upload file HOT 5
- #include "resources.h" HOT 3
- Compiling Library into application HOT 2
- Cannot send more than 4 characters from server -> client HOT 1
- request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap HOT 39
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portenta_h7_asyncwebserver.