example/le_streamer_client: stop on enable notify error

This commit is contained in:
Matthias Ringwald 2018-05-15 21:44:15 +02:00
parent 34c39fbd75
commit 6da5c9d5bb

View File

@ -293,6 +293,7 @@ static void handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint
switch(hci_event_packet_get_type(packet)){
case GATT_EVENT_QUERY_COMPLETE:
printf("Notifications enabled, status %02x\n", gatt_event_query_complete_get_status(packet));
if ( gatt_event_query_complete_get_status(packet)) break;
state = TC_W4_TEST_DATA;
#if (TEST_MODE & TEST_MODE_WRITE_WITHOUT_RESPONSE)
printf("Start streaming - request can send now.\n");