mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 06:47:17 +00:00
parent
5560b6054e
commit
f65d8c0cbf
@ -462,10 +462,11 @@ void MqttDataHandler(char* topic, byte* data, unsigned int data_len)
|
||||
|
||||
grpflg = (strstr(topicBuf, Settings.mqtt_grptopic) != NULL);
|
||||
fallback_topic_flag = (strstr(topicBuf, mqtt_client) != NULL);
|
||||
type = strrchr(topicBuf, '/') +1; // Last part of received topic is always the command (type)
|
||||
type = strrchr(topicBuf, '/'); // Last part of received topic is always the command (type)
|
||||
|
||||
index = 1;
|
||||
if (type != NULL) {
|
||||
type++;
|
||||
for (i = 0; i < strlen(type); i++) {
|
||||
type[i] = toupper(type[i]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user