-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is subscribe broken? #1065
Comments
It seems that if the message has to be sent in between |
I am having the same issue have you found a fix for this? |
No. This library was last updated over 4 years ago and the owner has lost interest: this library is dead and it's fucked. There is a fork of this that is being maintained at https://github.com/thingsboard/pubsubclient but I cannot see it in Library Manager and it has no installation insctuctions. |
Can you try adding a This library is in maintenance mode. It is pretty much stable and successfully used by many users. Equally, as you say, forks exist that add additional features if that is what you want. |
Neither this nor the ThingsBoard version receive data from subscriptions. Gut feeling is that it's something to do with timing and A workaround is to run this on debian to read the topic and expose it to the network.
and then read it like this
A problem with this is that you can only see the latest retained message on the topic in MQTT therefore the value must represent the desired state rather than an instruction to change state; comparing |
Would you use |
Moved from Arduino nano to ESP32 and same problem -- nothing is ever received.
This receives some messages from some topics -- 1mosquitto_sub` receives more messages from more topics. |
It turns out that payloads of length 243 or more are ignored -- without warning or error.
|
See https://github.com/knolleary/pubsubclient?tab=readme-ov-file#limitations for the default max packet size supported and how to increase it. |
Broker is Debian 12 and I'm seeing lots of messages at
zigbee2mqtt/lux
inmosquitto_sub
but nothing from this.Output:
There are usually two or three
<>
then a<
and long pause after which most of the timemqtt_reconnect
is called but sometimes it says[WiFiEsp] TIMEOUT: 10
and hangs.No message is ever received and
mqtt_allback
is never called.Is this supposed to work?
The text was updated successfully, but these errors were encountered: