Skip to content

Commit 121648f

Browse files
tekka007mfalkvidd
authored andcommitted
MQTT GW: Add INDICATION_GW_RX (#1228)
1 parent 4b14f5a commit 121648f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/MyGatewayTransportMQTTClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ bool gatewayTransportSend(MyMessage &message)
119119
return _MQTT_client.publish(topic, message.getString(_convBuffer), retain);
120120
}
121121

122-
void incomingMQTT(char* topic, uint8_t* payload, unsigned int length)
122+
void incomingMQTT(char *topic, uint8_t *payload, unsigned int length)
123123
{
124124
GATEWAY_DEBUG(PSTR("GWT:IMQ:TOPIC=%s, MSG RECEIVED\n"), topic);
125125
_MQTT_available = protocolMQTTParse(_MQTT_msg, topic, payload, length);
126+
setIndication(INDICATION_GW_RX);
126127
}
127128

128129
bool reconnectMQTT(void)

0 commit comments

Comments
 (0)