/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include #include "cxx_include/esp_modem_types.hpp" #include "cxx_include/esp_modem_dte.hpp" #include "cxx_include/esp_modem_dce_module.hpp" namespace esp_modem { template std::shared_ptr create_device(const std::shared_ptr &dte, std::string &apn) { auto pdp = std::make_unique(apn); return std::make_shared(dte, std::move(pdp)); } std::shared_ptr create_generic_module(const std::shared_ptr &dte, std::string &apn) { return create_device(dte, apn); } std::shared_ptr create_SIM7600_module(const std::shared_ptr &dte, std::string &apn) { return create_device(dte, apn); } } #include "cxx_include/esp_modem_api.hpp" #include "cxx_include/esp_modem_dce_factory.hpp" namespace esp_modem::dce_factory { std::unique_ptr FactoryHelper::create_pdp_context(std::string &apn) { return std::unique_ptr(); } }