Files
esp-protocols/components/esp_modem
David Cermak bf99f287bc fix(modem): Fixed inconsistent state on data after OK
If we received response in two chunks and the first one completes the
command (result=OK or FAIL), and the second chunk pre-empts command processing,
then we performed processing again rewritting the result back to
TIMEOUT. This would invalidate the command, but also causes an
exception: ESP_MODEM_THROW_IF_ERROR(ESP_ERR_INVALID_STATE)
Fixed by checking if the processing already finished in process_line().

Closes https://github.com/espressif/esp-protocols/issues/426
2023-11-29 20:24:53 +01:00
..
2023-10-30 07:30:47 +01:00
2023-10-30 07:30:47 +01:00
2021-10-04 11:32:55 +02:00

ESP MODEM

Component Registry

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 C
  • examples/modem_console -- C++ example implementing simple terminal console with DCE commands
  • examples/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