Add PSM value to the RFCOMM service so that the host knows what PSM to use on channels when trying to access it.
This commit is contained in:
parent
008e0e2e0a
commit
480da5aab6
6 changed files with 57 additions and 56 deletions
|
@ -291,11 +291,7 @@ void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t*
|
|||
break;
|
||||
default:
|
||||
/* Unknown Protocol packet */
|
||||
printf_P(PSTR("Packet Received (Channel 0x%04X, PSM: 0x%02x):\r\n"), Channel->LocalNumber, Channel->PSM);
|
||||
for (uint16_t Byte = 0; Byte < DataLen; Byte++)
|
||||
printf_P(PSTR("0x%02X "), ((uint8_t*)Data)[Byte]);
|
||||
puts_P(PSTR("\r\n"));
|
||||
|
||||
printf_P(PSTR("Unknown Packet Received (Channel 0x%04X, PSM: 0x%02X):\r\n"), Channel->LocalNumber, Channel->PSM);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue