pts: fix compile

This commit is contained in:
Matthias Ringwald 2016-04-08 14:19:54 +02:00
parent 683dbd933c
commit 9322a3ccd6
3 changed files with 6 additions and 5 deletions

View File

@ -1257,7 +1257,7 @@ static int ui_process_data_request(char buffer){
switch (central_state){ switch (central_state){
case CENTRAL_W4_WRITE_WITHOUT_RESPONSE: case CENTRAL_W4_WRITE_WITHOUT_RESPONSE:
ui_announce_write("Write without response"); ui_announce_write("Write without response");
gatt_client_write_value_of_characteristic_without_response(handle_gatt_client_event, handle, ui_attribute_handle, value_len, ui_value_data); gatt_client_write_value_of_characteristic_without_response(handle, ui_attribute_handle, value_len, ui_value_data);
break; break;
case CENTRAL_W4_WRITE_CHARACTERICISTIC_VALUE: case CENTRAL_W4_WRITE_CHARACTERICISTIC_VALUE:
ui_announce_write("Write Characteristic Value"); ui_announce_write("Write Characteristic Value");

View File

@ -273,17 +273,17 @@ static void heartbeat_handler(struct btstack_timer_source *ts){
static void app_run(void){ static void app_run(void){
if (!update_client) return; if (!update_client) return;
if (!att_server_can_send_packet_now()) return; if (!att_server_can_send_packet_now(handle)) return;
int result = -1; int result = -1;
switch (client_configuration){ switch (client_configuration){
case 0x01: case 0x01:
printf("Notify value %u\n", counter); printf("Notify value %u\n", counter);
result = att_server_notify(client_configuration_handle - 1, &counter, 1); result = att_server_notify(handle, client_configuration_handle - 1, &counter, 1);
break; break;
case 0x02: case 0x02:
printf("Indicate value %u\n", counter); printf("Indicate value %u\n", counter);
result = att_server_indicate(client_configuration_handle - 1, &counter, 1); result = att_server_indicate(handle, client_configuration_handle - 1, &counter, 1);
break; break;
default: default:
return; return;

View File

@ -49,6 +49,7 @@
#include "hci_cmd.h" #include "hci_cmd.h"
#include "hci.h" #include "hci.h"
#include "btstack_debug.h" #include "btstack_debug.h"
#include "btstack_event.h"
static uint16_t sco_handle = 0; static uint16_t sco_handle = 0;