mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Adding mqtt QoS config setting with a default of 0 and updating platformio to use 3.1.1
This commit is contained in:
parent
205605dc45
commit
42b1c18d01
3 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue