mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 19:33:47 +01:00
wip
This commit is contained in:
@@ -41,10 +41,6 @@ BLECharacteristic *BLEService::create_characteristic(ESPBTUUID uuid, esp_gatt_ch
|
|||||||
return characteristic;
|
return characteristic;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BLEService::add_characteristic(BLECharacteristic *characteristic) {
|
|
||||||
this->characteristics_.push_back(characteristic);
|
|
||||||
}
|
|
||||||
|
|
||||||
void BLEService::do_create(BLEServer *server) {
|
void BLEService::do_create(BLEServer *server) {
|
||||||
this->server_ = server;
|
this->server_ = server;
|
||||||
|
|
||||||
|
@@ -31,9 +31,6 @@ class BLEService {
|
|||||||
BLECharacteristic *create_characteristic(uint16_t uuid, esp_gatt_char_prop_t properties);
|
BLECharacteristic *create_characteristic(uint16_t uuid, esp_gatt_char_prop_t properties);
|
||||||
BLECharacteristic *create_characteristic(ESPBTUUID uuid, esp_gatt_char_prop_t properties);
|
BLECharacteristic *create_characteristic(ESPBTUUID uuid, esp_gatt_char_prop_t properties);
|
||||||
|
|
||||||
// Add pre-constructed characteristic (used by generated code)
|
|
||||||
void add_characteristic(BLECharacteristic *characteristic);
|
|
||||||
|
|
||||||
ESPBTUUID get_uuid() { return this->uuid_; }
|
ESPBTUUID get_uuid() { return this->uuid_; }
|
||||||
uint8_t get_inst_id() { return this->inst_id_; }
|
uint8_t get_inst_id() { return this->inst_id_; }
|
||||||
BLECharacteristic *get_last_created_characteristic() { return this->last_created_characteristic_; }
|
BLECharacteristic *get_last_created_characteristic() { return this->last_created_characteristic_; }
|
||||||
|
Reference in New Issue
Block a user