mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Internationilze D_MQTT_PAYLOAD_TOO_LONG string
This commit is contained in:
parent
e420b722b9
commit
8dc5ffc7ff
@ -126,7 +126,7 @@ void connlost(void* context, char* cause)
|
|||||||
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
|
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
|
||||||
{ // Handle incoming commands from MQTT
|
{ // Handle incoming commands from MQTT
|
||||||
if(length + 1 >= MQTT_MAX_PACKET_SIZE) {
|
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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
payload[length] = '\0';
|
payload[length] = '\0';
|
||||||
|
@ -123,7 +123,7 @@ void connlost(void* context, char* cause)
|
|||||||
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
|
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
|
||||||
{ // Handle incoming commands from MQTT
|
{ // Handle incoming commands from MQTT
|
||||||
if(length + 1 >= MQTT_MAX_PACKET_SIZE) {
|
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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
payload[length] = '\0';
|
payload[length] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user