Comments (7)
As this library is just calling the Paho embedded client it might be a limitation of their code, or the protocol stack of the Arduino or any other platform. As with the other issue I will conduct some tests with my hardware.
from arduino-mqtt.
With the latest version this should also work now.
from arduino-mqtt.
@marcobrianza Could you test if the problem still exists with your setup or has been resolved?
from arduino-mqtt.
ok, thank you I'll test it in the next days.
from arduino-mqtt.
@256dpi , I just tested this. In my loop() function I have code like this
if (!mqttClient.connected())
{
connectToWifiAndMqttBroker();
}
It never falls into the condition. That is the connectToWifiAndMqttBroker() function never gets called even when the broker is stopped. Wifi is still connected.
What really happens is that after some time the connect to the broker gets disconnected. But due to this issue, I can never reconnect. Similar code works on the Particle Photon and also when using the PubSubClient library.
from arduino-mqtt.
I was finally able to fix this issue and successfully tested it with my hardware. The bug is related to a limitation in the underlying library. Please test again with the current version 1.9.6.
Reopen this issue if there are still some problems remaining.
from arduino-mqtt.
@256dpi ,
Yes, this problem has been resolved with the update.
Thank you!
from arduino-mqtt.
Related Issues (20)
- Unable to connect with Platform I/O [email protected] (Arduino Core v3.1) HOT 3
- Cant connect to broker when using esp8266 version 3.1.1 HOT 9
- publish --> Mark as Duplicate HOT 10
- Session Store HOT 1
- Can't get connect with AWS IoT Core HOT 2
- JWT as password HOT 1
- Mqtt bufferSize value cannot exceed 1024 * 43 otherwise with error "Guru Meditation Error" HOT 1
- Possibility to serialize messages directly to server? HOT 1
- Issue with latest lwmqtt and the separation of the header and the payload HOT 4
- MQTT reconnection when not disconnected. ESP8266 HOT 6
- Unreliable behaviour with reconnections HOT 3
- MQTT HOT 1
- Websockets support HOT 3
- MQTT SSL connection issue with QoS1 and QoS2 messages HOT 1
- DCU: cannot connect to local MQTT broker HOT 1
- This library uses some posix functions that are not provided for Uno R4 HOT 3
- Subscribe query HOT 1
- Release version `v2.5.1` different of master version HOT 1
- 0
- Error connect MQTT SSL/TLS with module CBU use platform libretiny
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 arduino-mqtt.