mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-15 19:42:09 +02:00
Simple example of esp_modem component
(See the README.md file in the upper level 'examples' directory for more information about examples.)
Overview
This example demonstrates the use of the esp-modem component to connect to a network and send some AT commands. It uses modem CMUX mode so that commands and network could be used at the same time.
The example uses the following configuration options to demonstrate basic esp-modem capabilities:
EXAMPLE_NEED_SIM_PIN
: To unlock the SIM card with a PIN code if neededEXAMPLE_PERFORM_OTA
: To start simple OTA at the end of the example to exercise basic CMUX/modem networking. Please note that the optionCONFIG_UART_ISR_IN_IRAM
is not enabled automatically, so that buffer overflows are expected and CMUX/PPP and networking should recover.EXAMPLE_USE_VFS_TERM
: To demonstrate using an abstract file descriptor to talk to the device (instead of the UART driver directly). This option could be used when implementing a custom VFS driver.
About the esp_modem
Please check the component README
Supported IDF versions
This example is only supported from v4.3
, since is uses an experimental esp_event_cxx
component.