mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Handle too many command data
Handle too many command data
This commit is contained in:
parent
93d07c1acc
commit
68c60c321e
@ -431,6 +431,8 @@ uint16_t GetPulseTimer(uint8_t index)
|
|||||||
|
|
||||||
void MqttDataHandler(char* topic, uint8_t* data, unsigned int data_len)
|
void MqttDataHandler(char* topic, uint8_t* data, unsigned int data_len)
|
||||||
{
|
{
|
||||||
|
if (data_len > MQTT_MAX_PACKET_SIZE) { return; } // Do not allow more data than would be feasable within stack space
|
||||||
|
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
if (!strcmp(Settings.mqtt_prefix[0],Settings.mqtt_prefix[1])) {
|
if (!strcmp(Settings.mqtt_prefix[0],Settings.mqtt_prefix[1])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user