Print out in hex format in case non printable data are received

This commit is contained in:
krzychb
2017-10-19 21:45:58 +02:00
parent 479ba94ef7
commit 61dcade807
2 changed files with 11 additions and 0 deletions
@@ -61,6 +61,7 @@ static void rx_task()
if (rxBytes > 0) {
data[rxBytes] = 0;
ESP_LOGI(RX_TASK_TAG, "Read %d bytes: '%s'", rxBytes, data);
ESP_LOG_BUFFER_HEXDUMP(RX_TASK_TAG, data, rxBytes, ESP_LOG_INFO);
}
}
free(data);