ESPHome 2025.5.0
Loading...
Searching...
No Matches
ble_2902.cpp
Go to the documentation of this file.
1#include "ble_2902.h"
3
4#ifdef USE_ESP32
5
6#include <cstring>
7
8namespace esphome {
9namespace esp32_ble_server {
10
11BLE2902::BLE2902() : BLEDescriptor(esp32_ble::ESPBTUUID::from_uint16(0x2902)) {
12 this->value_.attr_len = 2;
13 uint8_t data[2] = {0, 0};
14 memcpy(this->value_.attr_value, data, 2);
15}
16
17} // namespace esp32_ble_server
18} // namespace esphome
19
20#endif
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7