ESPHome
2024.11.1
esphome
esphome
components
esp32_ble_server
ble_2902.cpp
Go to the documentation of this file.
1
#include "
ble_2902.h
"
2
#include "
esphome/components/esp32_ble/ble_uuid.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
esphome::esp32_ble_server::BLEDescriptor::value_
esp_attr_value_t value_
Definition:
ble_descriptor.h:36
ble_2902.h
esphome::esp32_ble::ESPBTUUID
Definition:
ble_uuid.h:14
esphome::esp32_ble_server::BLEDescriptor
Definition:
ble_descriptor.h:17
ble_uuid.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::esp32_ble_server::BLE2902::BLE2902
BLE2902()
Definition:
ble_2902.cpp:11
Generated by
1.8.13