From 4122764d81c85edd642dc7c05fe150c85cacc0a7 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 3 Apr 2013 17:52:12 +0200 Subject: [PATCH] Can now print out the UUID --- SPP.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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);