and I'm using this code to publish messages:
mgos_mqtt_pub(topicTemp, tempStr, sizeof(tempStr), 1);
After initialization I get the following message in console:
[Sep 6 14:44:09.010] mgos_mqtt_ev MQTT Connect (1)
[Sep 6 14:44:09.097] mgos_mqtt_ev MQTT Disconnect
[Sep 6 14:44:09.097] mqtt_global_reconnec MQTT connecting after 3768 ms
[Sep 6 14:44:09.097] mongoose_poll New heap free LWM: 183060
[Sep 6 14:44:12.154] timer_cb 0 devices/esp32_050258/messages/events/ -> Temperature: 26.799999
The zero in the last line means that mgos_mqtt_pub returned false.
I desperately need help please!
Thanks in advance.