The ble_gatt_server
component provides a few different classes for
implementing standard / common GATT server requirements, including the server
itself, the Device Information Service, and the Battery Service.
Table of Contents
The BleGattServer
implements the standard BLE GATT server which has various
APIs for controlling the server and adding services. It automatically builds and
adds standard battery service and device information service.
It is designed to be used with NimBLE host stack.
The BatteryService
implements the standard BLE battery service, providing
battery state information from a BLE peripheral to a BLE central.
It is designed to be used with NimBLE host stack.
The DeviceInfoService
implements the standard BLE device information service,
providing device information from a BLE peripheral to a BLE central.
It is designed to be used with NimBLE host stack.
The GenericAccessService
implements the required standard BLE Generic Access
service, providing device information from a BLE peripheral to a BLE central.
It should be noted that as a developer, you are not required to use this service, as one is created for you automatically by the BLE stack.
I'm not really sure why I created this file, but I have so here we are.
The example shows how to use the espp::BleGattServer
class to
create and manage a BLE GATT server.
idf.py add-dependency "espp/ble_gatt_server^0.21.0"