Fixed log for unsupported reatined messages

This commit is contained in:
Stephan Hadinger 2019-06-06 10:03:26 +02:00
parent 72c47c667a
commit a8b93c4cdb
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ void MqttPublish(const char* topic, bool retained)
{
char *me;
#ifdef USE_MQTT_AWS_IOT
AddLog_P(LOG_LEVEL_DEBUG, S_LOG_MQTT, PSTR("Retained are not supported by AWS IoT, using retained = false."));
if (retained) {
AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR("Retained are not supported by AWS IoT, using retained = false."));
}
retained = false; // AWS IoT does not support retained, it will disconnect if received
#endif