diff --git a/SPP.cpp b/SPP.cpp index b671e3c8..da05b507 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -209,6 +209,14 @@ void SPP::ACLData(uint8_t* l2capinbuf) { } } else { #ifdef EXTRADEBUG + Notify(PSTR("\r\nUUID: "), 0x80); + uint16_t uuid; + if((l2capinbuf[16] << 8 | l2capinbuf[17]) == 0x0000) // Check if it's sending the UUID as a 128-bit UUID + uuid = (l2capinbuf[18] << 8 | l2capinbuf[19]); + else // Short UUID + uuid = (l2capinbuf[16] << 8 | l2capinbuf[17]); + PrintHex (uuid, 0x80); + Notify(PSTR("\r\nLength: "), 0x80); uint16_t length = l2capinbuf[11] << 8 | l2capinbuf[12]; PrintHex (length, 0x80);