Adding mqtt QoS config setting with a default of 0 and updating platformio to use 3.1.1

This commit is contained in:
Matt Holmes 2025-01-30 21:26:01 +00:00
parent 205605dc45
commit 42b1c18d01
3 changed files with 4 additions and 6 deletions

View file

@ -538,6 +538,6 @@ void mqtt_loop(void) {
}
bool mqtt_publish(const char* topic, const char* mqtt_msg, bool retain) {
int msg_id = esp_mqtt_client_publish(client, topic, mqtt_msg, strlen(mqtt_msg), 1, retain);
int msg_id = esp_mqtt_client_publish(client, topic, mqtt_msg, strlen(mqtt_msg), MQTT_QOS, retain);
return msg_id > -1;
}