From 6789de8b8513295e23a412e5b6af3bcb6c4bff36 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Fri, 28 Jun 2019 19:57:57 -0700 Subject: [PATCH] how detailed payload --- test/lora32/main/main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/lora32/main/main.c b/test/lora32/main/main.c index 7467b83..9e41368 100644 --- a/test/lora32/main/main.c +++ b/test/lora32/main/main.c @@ -97,7 +97,19 @@ static void uart_event_task(void *pvParameters) { } static void handle_lora_receive(uint8_t *data, uint8_t size) { - printf("msg: %s\n", data); + uint8_t j; + + for(uint8_t i = 0; i < size; i += 16) { + for(j = 0; j < 16; j++) { + printf("%02X ", data[i + j]); + } + + for(j = 0; j < 16; j++) { + printf("%s", (char*)data[i + j]); + } + + printf("\n"); + } } void loop(void *p) {