#include <ble_characteristic.h>
Definition at line 25 of file ble_characteristic.h.
◆ State
Enumerator |
---|
FAILED | |
INIT | |
CREATING | |
CREATING_DEPENDENTS | |
CREATED | |
Definition at line 89 of file ble_characteristic.h.
◆ 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 | ) |
|
◆ 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 |
( |
bool |
notification = true | ) |
|
◆ on_write()
void esphome::esp32_ble_server::BLECharacteristic::on_write |
( |
const std::function< void(const std::vector< uint8_t > &)> && |
func | ) |
|
|
inline |
◆ 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_read_property()
void esphome::esp32_ble_server::BLECharacteristic::set_read_property |
( |
bool |
value | ) |
|
◆ set_value() [1/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
const uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
◆ set_value() [2/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
std::vector< uint8_t > |
value | ) |
|
◆ set_value() [3/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
const std::string & |
value | ) |
|
◆ set_value() [4/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
uint8_t & |
data | ) |
|
◆ set_value() [5/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
uint16_t & |
data | ) |
|
◆ set_value() [6/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
uint32_t & |
data | ) |
|
◆ set_value() [7/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
int & |
data | ) |
|
◆ set_value() [8/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
float & |
data | ) |
|
◆ set_value() [9/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
double & |
data | ) |
|
◆ set_value() [10/10]
void esphome::esp32_ble_server::BLECharacteristic::set_value |
( |
bool & |
data | ) |
|
◆ 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 | ) |
|
◆ descriptors_
std::vector<BLEDescriptor *> esphome::esp32_ble_server::BLECharacteristic::descriptors_ |
|
protected |
◆ handle_
uint16_t esphome::esp32_ble_server::BLECharacteristic::handle_ {0xFFFF} |
|
protected |
◆ INIT
◆ on_write_
std::function<void(const std::vector<uint8_t> &)> esphome::esp32_ble_server::BLECharacteristic::on_write_ |
|
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: