Przeglądaj źródła

examples/cxx: add missing header

Anton Maklakov 4 lat temu
rodzic
commit
9386014201

+ 6 - 13
examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/esp_mqtt_cxx.cpp

@@ -1,19 +1,12 @@
-// Copyright 2021 Espressif Systems (Shanghai) CO LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//         http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+/*
+ * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include <string>
 #include <algorithm>
+#include <stdexcept>
 
 #include "mqtt_client.h"
 #include "esp_log.h"

+ 3 - 2
examples/cxx/experimental/simple_spi_rw_example/main/simple_spi_rw_example.cpp

@@ -1,7 +1,7 @@
 /*
- * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  *
- * SPDX-License-Identifier: CC0
+ * SPDX-License-Identifier: CC0-1.0
  *
  * MPU9250 SPI Sensor C++ Example
  *
@@ -13,6 +13,7 @@
 */
 
 #include <iostream>
+#include <thread>
 #include "spi_host_cxx.hpp"
 
 using namespace std;

+ 0 - 1
tools/ci/check_copyright_ignore.txt

@@ -2054,7 +2054,6 @@ examples/cxx/experimental/esp_event_cxx/main/esp_event_cxx_example.cpp
 examples/cxx/experimental/esp_modem_cxx/main/simple_client.cpp
 examples/cxx/experimental/esp_modem_cxx/main/simple_mqtt_client.cpp
 examples/cxx/experimental/esp_modem_cxx/main/simple_mqtt_client.hpp
-examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/esp_mqtt_cxx.cpp
 examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/include/esp_mqtt.hpp
 examples/cxx/experimental/esp_mqtt_cxx/components/esp_mqtt_cxx/include/esp_mqtt_client_config.hpp
 examples/cxx/experimental/esp_mqtt_cxx/ssl/main/mqtt_ssl_example.cpp