Git Product home page Git Product logo

Comments (7)

256dpi avatar 256dpi commented on July 30, 2024

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.

256dpi avatar 256dpi commented on July 30, 2024

With the latest version this should also work now.

from arduino-mqtt.

256dpi avatar 256dpi commented on July 30, 2024

@marcobrianza Could you test if the problem still exists with your setup or has been resolved?

from arduino-mqtt.

marcobrianza avatar marcobrianza commented on July 30, 2024

ok, thank you I'll test it in the next days.

from arduino-mqtt.

matlus avatar matlus commented on July 30, 2024

@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.

256dpi avatar 256dpi commented on July 30, 2024

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.

matlus avatar matlus commented on July 30, 2024

@256dpi ,
Yes, this problem has been resolved with the update.
Thank you!

from arduino-mqtt.

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.