mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
ble client
This commit is contained in:
parent
0b5f1a3ae8
commit
f5bdf8a133
@ -276,9 +276,9 @@ le_command_status_t le_central_discover_characteristics_for_service(le_periphera
|
||||
// { type (8), le_peripheral_t *context, service_handle, le_characteristic *}
|
||||
|
||||
// gets all characteristics in handle range, and returns those that match the given UUID.
|
||||
le_command_status_t le_central_discover_characteristics_in_handle_range_by_uuid16(le_peripheral_t *context, uint16_t start_handle, uint16_t end_handle, uint16_t uuid16);
|
||||
le_command_status_t le_central_discover_characteristics_for_handle_range_by_uuid16(le_peripheral_t *context, uint16_t start_handle, uint16_t end_handle, uint16_t uuid16);
|
||||
// { type (8), le_peripheral_t *context, service_handle, le_characteristic *}
|
||||
le_command_status_t le_central_discover_characteristics_in_handle_range_by_uuid128(le_peripheral_t *context, uint16_t start_handle, uint16_t end_handle, uint8_t * uuid);
|
||||
le_command_status_t le_central_discover_characteristics_for_handle_range_by_uuid128(le_peripheral_t *context, uint16_t start_handle, uint16_t end_handle, uint8_t * uuid);
|
||||
// { type (8), le_peripheral_t *context, service_handle, le_characteristic *}
|
||||
|
||||
// more convenience
|
||||
|
@ -30,7 +30,7 @@ all: gatt_client
|
||||
profile.h: profile.gatt
|
||||
python ${BTSTACK_ROOT}/ble/compile-gatt.py $< $@
|
||||
|
||||
gatt_client: ${CORE_OBJ} ${COMMON_OBJ} gatt_client.c profile.h
|
||||
gatt_client: ${CORE_OBJ} ${COMMON_OBJ} gatt_client.c profile.h expected_results.h
|
||||
${CC} ${CORE_OBJ} ${COMMON_OBJ} gatt_client.c ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
clean:
|
||||
|
@ -64,12 +64,12 @@ int hci_send_cmd(const hci_cmd_t *cmd, ...){
|
||||
|
||||
|
||||
uint8_t *l2cap_get_outgoing_buffer(void){
|
||||
printf("l2cap_get_outgoing_buffer\n");
|
||||
// printf("l2cap_get_outgoing_buffer\n");
|
||||
return (uint8_t *)&l2cap_stack_buffer; // 8 bytes
|
||||
}
|
||||
|
||||
uint16_t l2cap_max_mtu(void){
|
||||
printf("l2cap_max_mtu\n");
|
||||
// printf("l2cap_max_mtu\n");
|
||||
return max_mtu;
|
||||
}
|
||||
|
||||
@ -83,12 +83,12 @@ void l2cap_register_packet_handler(void (*handler)(void * connection, uint8_t pa
|
||||
}
|
||||
|
||||
int l2cap_reserve_packet_buffer(void){
|
||||
printf("l2cap_reserve_packet_buffer\n");
|
||||
// printf("l2cap_reserve_packet_buffer\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t len){
|
||||
printf("l2cap_send_prepared_connectionless\n");
|
||||
// printf("l2cap_send_prepared_connectionless\n");
|
||||
// assert handle = current connection
|
||||
// assert cid = att
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user