C++ API Documentation
Similar to the C API Documentation, the basic application workflow consist of
Create DTE and DCE
- group ESP_MODEM_INIT_DTE
Create DTE’s.
Functions
-
std::shared_ptr<DTE> create_uart_dte(const dte_config *config)
Create UART DTE.
-
std::shared_ptr<DTE> create_vfs_dte(const dte_config *config)
Create VFS DTE.
-
std::shared_ptr<DTE> create_uart_dte(const dte_config *config)
- group ESP_MODEM_INIT_DCE
ESP_MODEM Initialization API for DCE.
Mode switching commands
-
template<class SpecificModule>
class DCE_T General DCE class templated on a specific module. It is responsible for all the necessary transactions related to switching modes and consequent synergy with aggregated objects of DTE, Netif and a specific Module.
Public Functions
-
inline void set_data()
Set data mode!
-
inline command_result pause_netif(bool do_pause, bool force = false, int delay = 1000)
Pauses/Unpauses network temporarily.
- Parameters
do_pause – true to pause, false to unpause
force – true to ignore command failures and continue
- Returns
command_result of the underlying commands
-
inline void set_data()
Modem commands
Destroy the DCE
The DCE object is created as std::unique_ptr
by default and as such doesn’t have to be explicitly destroyed.
It simply gets destroyed and cleaned-up automatically if the object goes out of the block scope.