Skip to content

Commit f2d53da

Browse files
committed
Bring back mgos_bt_gatts_conn.svc_uuid
1 parent 0f37448 commit f2d53da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/mgos_bt_gatts.h

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ enum mgos_bt_gatts_ev {
4141

4242
struct mgos_bt_gatts_conn {
4343
struct mgos_bt_gatt_conn gc;
44+
struct mgos_bt_uuid svc_uuid;
4445
void *user_data; /* Opaque pointer for user. */
4546
};
4647

src/esp32/esp32_bt_gatts.c

+1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ static void esp32_bt_gatts_create_sessions(
286286
sse->ce = ce;
287287
sse->se = se;
288288
sse->gsc.gc = ce->gc;
289+
sse->gsc.svc_uuid = se->uuid;
289290
enum mgos_bt_gatt_status st =
290291
esp32_bt_gatts_call_handler(sse, NULL, MGOS_BT_GATTS_EV_CONNECT, NULL);
291292
if (st != MGOS_BT_GATT_STATUS_OK) {

0 commit comments

Comments
 (0)