Debug optimisations
This commit is contained in:
@@ -55,8 +55,7 @@ static void onMqttConnect(bool sessionPresent)
|
||||
static void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties properties, size_t len, size_t index, size_t total) {
|
||||
static char *payloadStr;
|
||||
|
||||
DEBUG_PRINT(F("MQTT msg: "));
|
||||
DEBUG_PRINTLN(topic);
|
||||
DEBUG_PRINTF_P(PSTR("MQTT msg: %s\n"), topic);
|
||||
|
||||
// paranoia check to avoid npe if no payload
|
||||
if (payload==nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user