Skip to content

Commit eec2aa2

Browse files
nimble/apps/bttester: Remove deprecated BTP GATT service
- Removes files and content related to BTP GATT Service (0x02). - All necessary content has been migrated to btp_gatts.c and btp_gatts.h files - Ensured no loss of functionality; all essential GATT components preserved
1 parent bb032ff commit eec2aa2

File tree

5 files changed

+1
-2668
lines changed

5 files changed

+1
-2668
lines changed

apps/bttester/src/btp/btp.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
#include "bttester.h"
3030
#include "btp_core.h"
3131
#include "btp_gap.h"
32-
#include "btp_gatt.h"
33-
#include "btp_gattc.h"
3432
#include "btp_gatts.h"
33+
#include "btp_gattc.h"
3534
#include "btp_l2cap.h"
3635
#include "btp_mesh.h"
3736
#include "btp_pacs.h"
@@ -45,7 +44,6 @@
4544

4645
#define BTP_SERVICE_ID_CORE 0
4746
#define BTP_SERVICE_ID_GAP 1
48-
#define BTP_SERVICE_ID_GATT 2
4947
#define BTP_SERVICE_ID_L2CAP 3
5048
#define BTP_SERVICE_ID_MESH 4
5149
#define BTP_SERVICE_ID_GATTC 6

apps/bttester/src/btp/btp_gatt.h

Lines changed: 0 additions & 339 deletions
This file was deleted.

apps/bttester/src/btp/bttester.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ uint8_t
106106
tester_unregister_gap(void);
107107
void
108108
tester_init_core(void);
109-
uint8_t
110-
tester_init_gatt(void);
111-
uint8_t
112-
tester_unregister_gatt(void);
113109
int
114110
tester_gattc_notify_rx_ev(uint16_t conn_handle, uint16_t attr_handle,
115111
uint8_t indication, struct os_mbuf *om);

apps/bttester/src/btp_core.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ supported_services(const void *cmd, uint16_t cmd_len,
5050
/* octet 0 */
5151
tester_set_bit(rp->data, BTP_SERVICE_ID_CORE);
5252
tester_set_bit(rp->data, BTP_SERVICE_ID_GAP);
53-
tester_set_bit(rp->data, BTP_SERVICE_ID_GATT);
5453
#if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM)
5554
tester_set_bit(rp->data, BTP_SERVICE_ID_L2CAP);
5655
#endif /* MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM) */
@@ -87,9 +86,6 @@ register_service(const void *cmd, uint16_t cmd_len,
8786
case BTP_SERVICE_ID_GAP:
8887
status = tester_init_gap();
8988
break;
90-
case BTP_SERVICE_ID_GATT:
91-
status = tester_init_gatt();
92-
break;
9389
#if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM)
9490
case BTP_SERVICE_ID_L2CAP:
9591
status = tester_init_l2cap();
@@ -154,9 +150,6 @@ unregister_service(const void *cmd, uint16_t cmd_len,
154150
case BTP_SERVICE_ID_GAP:
155151
status = tester_unregister_gap();
156152
break;
157-
case BTP_SERVICE_ID_GATT:
158-
status = tester_unregister_gatt();
159-
break;
160153
#if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM)
161154
case BTP_SERVICE_ID_L2CAP:
162155
status = tester_unregister_l2cap();

0 commit comments

Comments
 (0)