functional factory work

This commit is contained in:
David Cermak committed 2021-10-04 11:32:54 +02:00
1 parent 1ef6141936
commit e98e6c42f6
8 files changed
+179 -157

No files matched your search

+5
View File
@@ -5,6 +5,10 @@
#include "cxx_include/esp_modem_dce_module.hpp"
#include "generate/esp_modem_command_declare.inc"
GenericModule::GenericModule(std::shared_ptr<DTE> dte, esp_modem_dce_config *config):
dte(std::move(dte)), pdp(std::make_unique<PdpContext>(config->apn)) {}
#define ARGS0
#define ARGS1 , x
#define _ARGS(x) ARGS ## x
@@ -18,6 +22,7 @@ DECLARE_ALL_COMMAND_APIS(return_type name(...) { forwards to esp_modem::dce_comm
#undef ESP_MODEM_DECLARE_DCE_COMMAND
//command_result SIM7600::get_module_name(std::string& name)
//{
// name = "7600";