mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-16 12:02:11 +02:00
This allows calling directly: auto dce = dce_factory::Factory::create_unique_dce_from<SIM7600>(&dce_config, uart_dte, esp_netif); instead of: auto dce = create_SIM7600_dce(&dce_config, uart_dte, esp_netif); Which is very useful when adding a custom module, so we won't need to update factory layers and add the new device to enums, etc. To add a new module, you just: 1) Define the module class NewModule: public GenericModule { }; 2) Implement the specific commands: command_result do_work_new_module(CommandableIf *t, params) {} 3) Connect 1) and 2) command_result NewModule::do_work_new_module(params...) { return dce_commands::do_work_new_module(dte.get(), params...); }
ESP MODEM
The esp-modem
component is a managed component for esp-idf
that is used for communication with GSM/LTE modems
that support AT commands and PPP protocol as a network interface.
Examples
Get started with one of the examples:
examples/pppos_client
-- simple client implemented in Cexamples/modem_console
-- C++ example implementing simple terminal console with DCE commandsexamples/ap_to_pppos
-- this example focuses on the network connectivity of the esp-modem and provides a WiFi AP that forwards packets (and uses NAT) to and from the PPPoS connection.examples/simple_cmux_client
-- this example sets up the CMUX mode to talk to the modem using AT commands with simultaneously maintaining active network connection.
Documentation
- Continue with esp-modem brief overview
- View the full html documentation