how detailed payload

This commit is contained in:
Morgan 'ARR\!' Allen 2019-06-28 19:57:57 -07:00
parent 4917cc4f0a
commit 6789de8b85

View file

@ -97,7 +97,19 @@ static void uart_event_task(void *pvParameters) {
} }
static void handle_lora_receive(uint8_t *data, uint8_t size) { 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) { void loop(void *p) {