-
Hello, I am using this [https://github.com/256dpi/arduino-mqtt] Library for MQTT handling. Any idea, what could cause this problem? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Where are you calling the strip.Show() in your MQTT sketch? It can not be called from within an ISR or a callback within a context of a ISR. |
Beta Was this translation helpful? Give feedback.
-
I have been relying on the general code to handle zero sized data well; no special cases. In this case, the underlying hardware does not like it and puts it into a state where it doesn't consider the sending of the zero sized packet as finished. While this specific instance is an Esp8266 DMA issue, it does uncover a design issue that can easily popup down the road. You can create an issue tracking that Zero sized NeoPixelBus is not well mannered and doesn't provide feedback that it can't support zero. |
Beta Was this translation helpful? Give feedback.
I have been relying on the general code to handle zero sized data well; no special cases. In this case, the underlying hardware does not like it and puts it into a state where it doesn't consider the sending of the zero sized packet as finished. While this specific instance is an Esp8266 DMA issue, it does uncover a design issue that can easily popup down the road.
You can create an issue tracking that Zero sized NeoPixelBus is not well mannered and doesn't provide feedback that it can't support zero.