From 8dc5ffc7ff6308d03016a440b409052201b92c55 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Fri, 16 Apr 2021 22:35:49 +0200 Subject: [PATCH] Internationilze D_MQTT_PAYLOAD_TOO_LONG string --- src/mqtt/hasp_mqtt_paho_async.cpp | 2 +- src/mqtt/hasp_mqtt_paho_single.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mqtt/hasp_mqtt_paho_async.cpp b/src/mqtt/hasp_mqtt_paho_async.cpp index 642c71e5..166ff099 100644 --- a/src/mqtt/hasp_mqtt_paho_async.cpp +++ b/src/mqtt/hasp_mqtt_paho_async.cpp @@ -126,7 +126,7 @@ void connlost(void* context, char* cause) static void mqtt_message_cb(char* topic, char* payload, unsigned int length) { // Handle incoming commands from MQTT if(length + 1 >= MQTT_MAX_PACKET_SIZE) { - LOG_ERROR(TAG_MQTT_RCV, F("Payload too long (%d bytes)"), length); + LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length); return; } else { payload[length] = '\0'; diff --git a/src/mqtt/hasp_mqtt_paho_single.cpp b/src/mqtt/hasp_mqtt_paho_single.cpp index a291e71d..3c1f1841 100644 --- a/src/mqtt/hasp_mqtt_paho_single.cpp +++ b/src/mqtt/hasp_mqtt_paho_single.cpp @@ -123,7 +123,7 @@ void connlost(void* context, char* cause) static void mqtt_message_cb(char* topic, char* payload, unsigned int length) { // Handle incoming commands from MQTT if(length + 1 >= MQTT_MAX_PACKET_SIZE) { - LOG_ERROR(TAG_MQTT_RCV, F("Payload too long (%d bytes)"), length); + LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length); return; } else { payload[length] = '\0';