diff --git a/components/esp_modem/include/cxx_include/esp_modem_dce_factory.hpp b/components/esp_modem/include/cxx_include/esp_modem_dce_factory.hpp index a9aeead65..5bcb39070 100644 --- a/components/esp_modem/include/cxx_include/esp_modem_dce_factory.hpp +++ b/components/esp_modem/include/cxx_include/esp_modem_dce_factory.hpp @@ -236,6 +236,14 @@ public: return nullptr; } + template + static std::unique_ptr create_unique_dce_from(const esp_modem::dce_config *config, + std::shared_ptr dte, + esp_netif_t *netif) + { + return build_generic_DCE>(config, std::move(dte), netif); + } + private: ModemType m;