-
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
Callback fires really rare #219
Comments
I can confirm a similar thing happens to me. Publishing messages works fine, but printing out messages from a topic will only work if you send a large number of messages to that channel in a short space of time. I'm also using the |
@knolleary Please, have a look. |
@lenyapugachev can you describe a bit more clearly what you are trying to do? You are publishing to a topic that the ESP is subscribed to, but you don't always receive the message? Are you publishing at a high rate? What size messages are involved? |
You have a function called |
Hello, @knolleary Thanks for your help. crossFade doesn't matter, now all my tests including just one line in loop and it is mqttLoop(); Publishing is successful, I'm not sure about rate and size of publishing messages because I'm using HAP-NodeJS and can't found rate and size defining in its code. But, I'm sure ESP got messages because it's blinking everytime I'm publishing. Also, publishing can cause reconnection of ESP to MQTT. Here is a video about that (I didn't catch moment of rare message receiving, because it is really rare, but it still happens from time to time): |
Hi.
Using Arduino MEGA, ESP-12-F, NodeHAP-JS and Mosca.
Publisher and Client successfully connecting and subscribing to topic.
When I'm publishing from server (switching on and off in Home app) in topic nothing happens basically. But if I toggle in Home app fast and like 3-4 times one message can be received by ESP and Arduino and callback is firing. But how to make it stable?
My code:
The text was updated successfully, but these errors were encountered: