kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Debug print for the LoRaWAN received packet
rodzic
e355b6c8f6
commit
63be645934
|
@ -328,8 +328,10 @@ extern "C"
|
||||||
if(RxLen>0) // if Downlink data received
|
if(RxLen>0) // if Downlink data received
|
||||||
{ xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
{ xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
||||||
Format_String(CONS_UART_Write, "LoRaWAN Msg: ");
|
Format_String(CONS_UART_Write, "LoRaWAN Msg: ");
|
||||||
Format_UnsDec(CONS_UART_Write, (uint16_t)RxLen);
|
// Format_UnsDec(CONS_UART_Write, (uint16_t)RxLen);
|
||||||
Format_String(CONS_UART_Write, "B");
|
// Format_String(CONS_UART_Write, "B");
|
||||||
|
for(int Idx=0; Idx<RxLen; Idx++)
|
||||||
|
{ Format_Hex(CONS_UART_Write, WANdev.Packet[Idx]); }
|
||||||
Format_String(CONS_UART_Write, "\n");
|
Format_String(CONS_UART_Write, "\n");
|
||||||
xSemaphoreGive(CONS_Mutex); }
|
xSemaphoreGive(CONS_Mutex); }
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue