example/pbap_client_demo: print operation complete status

This commit is contained in:
Matthias Ringwald 2022-03-04 10:37:09 +01:00
parent d95b00c1ee
commit ad06355e76

View File

@ -291,7 +291,8 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
printf("[+] Connection closed\n");
break;
case PBAP_SUBEVENT_OPERATION_COMPLETED:
printf("[+] Operation complete\n");
printf("[+] Operation complete, status 0x%02x\n",
pbap_subevent_operation_completed_get_status(packet));
break;
case PBAP_SUBEVENT_AUTHENTICATION_REQUEST:
printf("[?] Authentication requested\n");