You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into an odd issue. If I put more than 17 characters into heatpump_topic, it fails to publish and instead dumps the failed to publish warning. I tried tons of combinations until I realized it seems to be limited to any 17 or less characters including any "/" topic separators.
It only happens to the hpsettingschanged publish void. I replaced the json "buffer" variable with "test" and then I could put whatever topic I wanted. The other voids for status and timers are happy with nice and long topics.
I see in #37 that @kayno uses "home/living-area/heatpump" (which I also tried) This is over 17 so I don't understand why mine won't accept it. I'm using the mqtt_esp8266 example code. Only thing changed is the ssid, password, and topics in the .h file.
Using a huzzah.
The text was updated successfully, but these errors were encountered:
The pubsubclient library defaults to 128 max packet size. I increased MQTT_MAX_PACKET_SIZE to 256 in pubsubclient.h and now it works with larger topics. Kinda surprised others haven't seen this issue though. Hopefully it will help somebody save time in the future.
I have run into an odd issue. If I put more than 17 characters into heatpump_topic, it fails to publish and instead dumps the failed to publish warning. I tried tons of combinations until I realized it seems to be limited to any 17 or less characters including any "/" topic separators.
It only happens to the hpsettingschanged publish void. I replaced the json "buffer" variable with "test" and then I could put whatever topic I wanted. The other voids for status and timers are happy with nice and long topics.
I see in #37 that @kayno uses "home/living-area/heatpump" (which I also tried) This is over 17 so I don't understand why mine won't accept it. I'm using the mqtt_esp8266 example code. Only thing changed is the ssid, password, and topics in the .h file.
Using a huzzah.
The text was updated successfully, but these errors were encountered: