mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Align BLE service logging (#4095)
This commit is contained in:
		| @@ -151,9 +151,9 @@ bool BLEClientBase::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_ | ||||
|     case ESP_GATTC_SEARCH_CMPL_EVT: { | ||||
|       ESP_LOGV(TAG, "[%d] [%s] ESP_GATTC_SEARCH_CMPL_EVT", this->connection_index_, this->address_str_.c_str()); | ||||
|       for (auto &svc : this->services_) { | ||||
|         ESP_LOGI(TAG, "[%d] [%s] Service UUID: %s", this->connection_index_, this->address_str_.c_str(), | ||||
|         ESP_LOGV(TAG, "[%d] [%s] Service UUID: %s", this->connection_index_, this->address_str_.c_str(), | ||||
|                  svc->uuid.to_string().c_str()); | ||||
|         ESP_LOGI(TAG, "[%d] [%s]  start_handle: 0x%x  end_handle: 0x%x", this->connection_index_, | ||||
|         ESP_LOGV(TAG, "[%d] [%s]  start_handle: 0x%x  end_handle: 0x%x", this->connection_index_, | ||||
|                  this->address_str_.c_str(), svc->start_handle, svc->end_handle); | ||||
|       } | ||||
|       this->set_state(espbt::ClientState::CONNECTED); | ||||
|   | ||||
| @@ -57,7 +57,7 @@ void BLEService::parse_characteristics() { | ||||
|     characteristic->handle = result.char_handle; | ||||
|     characteristic->service = this; | ||||
|     this->characteristics.push_back(characteristic); | ||||
|     ESP_LOGI(TAG, "[%d] [%s]  characteristic %s, handle 0x%x, properties 0x%x", this->client->get_connection_index(), | ||||
|     ESP_LOGV(TAG, "[%d] [%s]  characteristic %s, handle 0x%x, properties 0x%x", this->client->get_connection_index(), | ||||
|              this->client->address_str().c_str(), characteristic->uuid.to_string().c_str(), characteristic->handle, | ||||
|              characteristic->properties); | ||||
|     offset++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user