#include <ble_characteristic.h>
Definition at line 30 of file ble_characteristic.h.
◆ State
◆ BLECharacteristic()
| esphome::esp32_ble_server::BLECharacteristic::BLECharacteristic |
( |
ESPBTUUID | uuid, |
|
|
uint32_t | properties ) |
◆ ~BLECharacteristic()
| esphome::esp32_ble_server::BLECharacteristic::~BLECharacteristic |
( |
| ) |
|
◆ add_descriptor()
| void esphome::esp32_ble_server::BLECharacteristic::add_descriptor |
( |
BLEDescriptor * | descriptor | ) |
|
◆ do_create()
| void esphome::esp32_ble_server::BLECharacteristic::do_create |
( |
BLEService * | service | ) |
|
◆ do_delete()
| void esphome::esp32_ble_server::BLECharacteristic::do_delete |
( |
| ) |
|
|
inline |
◆ find_client_in_notify_list_()
◆ gatts_event_handler()
| void esphome::esp32_ble_server::BLECharacteristic::gatts_event_handler |
( |
esp_gatts_cb_event_t | event, |
|
|
esp_gatt_if_t | gatts_if, |
|
|
esp_ble_gatts_cb_param_t * | param ) |
◆ get_service()
| BLEService * esphome::esp32_ble_server::BLECharacteristic::get_service |
( |
| ) |
|
|
inline |
◆ get_uuid()
| ESPBTUUID esphome::esp32_ble_server::BLECharacteristic::get_uuid |
( |
| ) |
|
|
inline |
◆ get_value()
| std::vector< uint8_t > & esphome::esp32_ble_server::BLECharacteristic::get_value |
( |
| ) |
|
|
inline |
◆ is_created()
| bool esphome::esp32_ble_server::BLECharacteristic::is_created |
( |
| ) |
|
◆ is_failed()
| bool esphome::esp32_ble_server::BLECharacteristic::is_failed |
( |
| ) |
|
◆ notify()
| void esphome::esp32_ble_server::BLECharacteristic::notify |
( |
| ) |
|
◆ on_read()
| void esphome::esp32_ble_server::BLECharacteristic::on_read |
( |
std::function< void(uint16_t)> && | callback | ) |
|
|
inline |
◆ on_write()
| void esphome::esp32_ble_server::BLECharacteristic::on_write |
( |
std::function< void(std::span< const uint8_t >, uint16_t)> && | callback | ) |
|
|
inline |
◆ remove_client_from_notify_list_()
| void esphome::esp32_ble_server::BLECharacteristic::remove_client_from_notify_list_ |
( |
uint16_t | conn_id | ) |
|
|
protected |
◆ remove_descriptor()
| void esphome::esp32_ble_server::BLECharacteristic::remove_descriptor |
( |
BLEDescriptor * | descriptor | ) |
|
◆ set_broadcast_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_broadcast_property |
( |
bool | value | ) |
|
◆ set_indicate_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_indicate_property |
( |
bool | value | ) |
|
◆ set_notify_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_notify_property |
( |
bool | value | ) |
|
◆ set_property_bit_()
| void esphome::esp32_ble_server::BLECharacteristic::set_property_bit_ |
( |
esp_gatt_char_prop_t | bit, |
|
|
bool | value ) |
|
protected |
◆ set_read_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_read_property |
( |
bool | value | ) |
|
◆ set_value() [1/4]
| void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
ByteBuffer | buffer | ) |
|
◆ set_value() [2/4]
| void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
const std::string & | buffer | ) |
|
◆ set_value() [3/4]
| void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
std::initializer_list< uint8_t > | data | ) |
|
◆ set_value() [4/4]
| void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
std::vector< uint8_t > && | buffer | ) |
|
◆ set_write_no_response_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_write_no_response_property |
( |
bool | value | ) |
|
◆ set_write_property()
| void esphome::esp32_ble_server::BLECharacteristic::set_write_property |
( |
bool | value | ) |
|
◆ clients_to_notify_
◆ descriptors_
| std::vector<BLEDescriptor *> esphome::esp32_ble_server::BLECharacteristic::descriptors_ |
|
protected |
◆ handle_
| uint16_t esphome::esp32_ble_server::BLECharacteristic::handle_ {0xFFFF} |
|
protected |
◆ INIT
◆ on_read_callback_
| std::unique_ptr<std::function<void(uint16_t)> > esphome::esp32_ble_server::BLECharacteristic::on_read_callback_ |
|
protected |
◆ on_write_callback_
| std::unique_ptr<std::function<void(std::span<const uint8_t>, uint16_t)> > esphome::esp32_ble_server::BLECharacteristic::on_write_callback_ |
|
protected |
◆ permissions_
| esp_gatt_perm_t esphome::esp32_ble_server::BLECharacteristic::permissions_ = ESP_GATT_PERM_READ | ESP_GATT_PERM_WRITE |
|
protected |
◆ properties_
| esp_gatt_char_prop_t esphome::esp32_ble_server::BLECharacteristic::properties_ |
|
protected |
◆ PROPERTY_BROADCAST
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_BROADCAST = 1 << 3 |
|
static |
◆ PROPERTY_INDICATE
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_INDICATE = 1 << 4 |
|
static |
◆ PROPERTY_NOTIFY
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_NOTIFY = 1 << 2 |
|
static |
◆ PROPERTY_READ
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_READ = 1 << 0 |
|
static |
◆ PROPERTY_WRITE
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_WRITE = 1 << 1 |
|
static |
◆ PROPERTY_WRITE_NR
| const uint32_t esphome::esp32_ble_server::BLECharacteristic::PROPERTY_WRITE_NR = 1 << 5 |
|
static |
◆ service_
| BLEService* esphome::esp32_ble_server::BLECharacteristic::service_ {} |
|
protected |
◆ set_value_lock_
| SemaphoreHandle_t esphome::esp32_ble_server::BLECharacteristic::set_value_lock_ |
|
protected |
◆ uuid_
| ESPBTUUID esphome::esp32_ble_server::BLECharacteristic::uuid_ |
|
protected |
◆ value_
| std::vector<uint8_t> esphome::esp32_ble_server::BLECharacteristic::value_ |
|
protected |
◆ value_read_offset_
| uint16_t esphome::esp32_ble_server::BLECharacteristic::value_read_offset_ {0} |
|
protected |
◆ write_event_
| bool esphome::esp32_ble_server::BLECharacteristic::write_event_ {false} |
|
protected |
The documentation for this class was generated from the following files: