mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-23 14:18:28 +02:00
a70a205ace
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
19 lines
346 B
C++
19 lines
346 B
C++
#include "ble_2902.h"
|
|
#include "ble_uuid.h"
|
|
|
|
#ifdef ARDUINO_ARCH_ESP32
|
|
|
|
namespace esphome {
|
|
namespace esp32_ble {
|
|
|
|
BLE2902::BLE2902() : BLEDescriptor(ESPBTUUID::from_uint16(0x2902)) {
|
|
this->value_.attr_len = 2;
|
|
uint8_t data[2] = {0, 0};
|
|
memcpy(this->value_.attr_value, data, 2);
|
|
}
|
|
|
|
} // namespace esp32_ble
|
|
} // namespace esphome
|
|
|
|
#endif
|