Phone nearby

BLE GATT Client

The module reads someone else’s sensor or wearable.

Phone nearby Device connects out ESP32 BLE parts

Official path: examples/bluetooth/bluedroid/ble/gatt_client

01 Overview

Scan, connect, read/write.

  • Use when: a gateway collecting BLE sensors.
  • Skip when: the phone should connect to you (Server).

02 Hardware

  • Same RF layout as Server.
  • Multi-peripheral + Wi-Fi coexistence needs measurement.

03 Software flow

1. Scan by UUID or name.

2. Connect, discover, enable notify.

3. Handle dropouts and pairing failures.

04 Core points

  • Tight filters or you will join the wrong device on site.
  • Custom work: gateway firmware, multi-connect, MQTT uplink.

中文

手机近场

BLE GATT Client

模组去读别人的传感器或手环类设备。

手机近场 去连别人 ESP32 BLE parts

官方路径: examples/bluetooth/bluedroid/ble/gatt_client

01 项目概述

扫描并连接 GATT 服务器,读写特征。

  • 适用: 网关收 BLE 传感器。
  • 不适用: 自己被手机连(那是 Server)。

02 项目硬件描述

  • 与 Server 相同的射频布局。
  • 多从机时天线和共存(Wi-Fi+BLE)要一起评估。

03 项目软件流程描述

1. 扫描目标 UUID 或名字。

2. 连接、发现服务、开通知。

3. 产品要处理掉线重连和配对失败。

04 项目核心点

  • 过滤条件要严,否则会连错现场设备。
  • 可定制: 网关固件、多连接、上报到 MQTT。