hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
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
31
#ifndef __BT_GATT_CLITEN_H__
#define __BT_GATT_CLITEN_H__
 
#include "gdbus/gdbus.h"
 
#include <RkBtBase.h>
#include <RkBleClient.h>
 
#ifdef __cplusplus
extern "C" {
#endif
 
void gatt_client_register_state_callback(RK_BLE_CLIENT_STATE_CALLBACK cb);
void gatt_client_register_recv_callback(RK_BLE_CLIENT_RECV_CALLBACK cb);
void gatt_client_state_send(RK_BLE_CLIENT_STATE state);
void gatt_client_recv_data_send(GDBusProxy *proxy, DBusMessageIter *iter);
RK_BLE_CLIENT_STATE gatt_client_get_state();
void gatt_client_open();
void gatt_client_close();
int gatt_client_get_service_info(char *address, RK_BLE_CLIENT_SERVICE_INFO *info);
int gatt_client_read(char *uuid, int offset);
int gatt_client_write(char *uuid, char *data, int data_len, int offset);
bool gatt_client_is_notifying(const char *uuid);
int gatt_client_notify(const char *uuid, bool enable);
int gatt_client_get_eir_data(char *address, char *eir_data, int eir_len);
 
#ifdef __cplusplus
}
#endif
 
#endif /* __BT_GATT_CLITEN_H__ */