aboutsummaryrefslogtreecommitdiffstats
path: root/ble.h
blob: b4e6c9d92516b0f350f3ae493320b0c5922f1e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
struct ble
{
  bdaddr_t src_addr, dst_addr;
  int sec;
  uint8_t dst_type;

  uint16_t mtu;

  int fd;

  struct bt_att *att;
  struct gatt_db *db;
  struct bt_gatt_client *gatt;

  unsigned notify_id;

  uint16_t cp_handle;
  uint16_t cccd_handle;
  uint16_t data_handle;

  int notify_waiting_for_op;
  int notify_code;


  size_t notify_pkts;
  int notify_waiting_for_pkts;

};

typedef struct ble BLE;