how detailed payload
This commit is contained in:
parent
4917cc4f0a
commit
6789de8b85
1 changed files with 13 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue