Internationilze D_MQTT_PAYLOAD_TOO_LONG string

This commit is contained in:
fvanroie 2021-04-16 22:35:49 +02:00
parent e420b722b9
commit 8dc5ffc7ff
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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';