Hexadecimal payload dump

This commit is contained in:
tuxphone 2020-09-29 12:41:36 +02:00 committed by GitHub
parent 2fd23157e5
commit e7764f17ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -148,6 +148,12 @@ void RxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
MSG(" Packet ID: "); HEXMSG(thePacket.id);
MSG(" Flags: WANT_ACK="); MSG((thePacket.want_ack) ? "YES " : "NO ");
MSG(" HOP_LIMIT=%i\n", thePacket.hop_limit);
MSG("Payload:");
for (int i=0; i<p->encrypted.size; i++){
MSG(" ");
HEXMSG(p->encrypted.bytes[i]);
}
MSG("\n");
#endif
if ( !(lastreceivedID == thePacket.id) ){
// will repeat package