ESPHome  2024.11.1
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 
8 namespace esphome {
9 namespace esp32_ble_server {
10 
11 BLE2902::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
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7