diff --git a/tools/AquaDebug/include/mqtt/MQTTDefinitions.h b/tools/AquaDebug/include/mqtt/MQTTDefinitions.h index 51c0066..d09d79c 100644 --- a/tools/AquaDebug/include/mqtt/MQTTDefinitions.h +++ b/tools/AquaDebug/include/mqtt/MQTTDefinitions.h @@ -1,15 +1,13 @@ #ifndef AQUAMQTT_MQTTDEFINITIONS_H #define AQUAMQTT_MQTTDEFINITIONS_H -#include "pgmspace.h" - namespace aquamqtt { namespace mqtt { -const char BASE_TOPIC[] PROGMEM = { "aquadbg/" }; -const char DEBUG[] PROGMEM = { "debug" }; +constexpr char BASE_TOPIC[] = { "aquadbg/" }; +constexpr char DEBUG[] = { "debug" }; } // namespace mqtt } // namespace aquamqtt diff --git a/tools/AquaDebug/src/main.cpp b/tools/AquaDebug/src/main.cpp index 1d4e75a..0044a0f 100644 --- a/tools/AquaDebug/src/main.cpp +++ b/tools/AquaDebug/src/main.cpp @@ -86,7 +86,7 @@ void loop() mBuffer.pop(retVal); mTempBuffer[i] = retVal; } - sprintf(reinterpret_cast(mTopicBuffer), "%s%S%S", config::mqttPrefix, BASE_TOPIC, DEBUG); + sprintf(reinterpret_cast(mTopicBuffer), "%s%s%s", config::mqttPrefix, BASE_TOPIC, DEBUG); toHexStr(mTempBuffer, BUFFER_SIZE, reinterpret_cast(mPayloadBuffer)); mMQTTClient.publish(reinterpret_cast(mTopicBuffer), reinterpret_cast(mPayloadBuffer)); }