2021-05-26 16:41:19 +08:00
# Modem console example
2020-11-18 21:20:35 +01:00
(See the README.md file in the upper level 'examples' directory for more information about examples.)
## Overview
2021-05-18 19:10:32 +02:00
2020-11-18 21:20:35 +01:00
This example is mainly targets experimenting with a modem device, sending custom commands and switching to PPP mode using esp-console, command line API.
2021-05-18 19:10:32 +02:00
Please check the list of supported commands using `help` command.
2020-11-18 21:20:35 +01:00
2021-05-18 19:10:32 +02:00
This example implements two very simple network commands to demonstrate and test basic network functionality.
* `httpget` : Connect and get http content
* `ping` : Send ICMP pings
2020-11-18 21:20:35 +01:00
2021-05-18 19:10:32 +02:00
To demonstrate creating custom modem devices, this example creates a DCE object using a locally defined create method,
that sets up the DCE based on a custom module implemented in the `my_module_dce.hpp` file. The module class only overrides
`get_module_name()` method supplying a user defined name, but keeps all other commands the same as defined in the `GenericModule`
2021-05-21 16:05:37 +02:00
class.
### Supported IDF versions
This example is only supported from `v4.2` , due to support of the console repl mode.