mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Can now print out the UUID
This commit is contained in:
parent
a890d4aca8
commit
4122764d81
1 changed files with 8 additions and 0 deletions
8
SPP.cpp
8
SPP.cpp
|
@ -209,6 +209,14 @@ void SPP::ACLData(uint8_t* l2capinbuf) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#ifdef EXTRADEBUG
|
#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<uint16_t> (uuid, 0x80);
|
||||||
|
|
||||||
Notify(PSTR("\r\nLength: "), 0x80);
|
Notify(PSTR("\r\nLength: "), 0x80);
|
||||||
uint16_t length = l2capinbuf[11] << 8 | l2capinbuf[12];
|
uint16_t length = l2capinbuf[11] << 8 | l2capinbuf[12];
|
||||||
PrintHex<uint16_t> (length, 0x80);
|
PrintHex<uint16_t> (length, 0x80);
|
||||||
|
|
Loading…
Reference in a new issue