mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-06-25 17:31:33 +02:00
fix(modem): Fixed API docs within doxygen comments
This commit is contained in:
@ -76,6 +76,7 @@ public:
|
||||
* @param command Command to be sent
|
||||
* @param got_line callback if a line received
|
||||
* @param time_ms timeout in milliseconds
|
||||
* @param separator Character treated as a line separator, typically '\n'
|
||||
* @return OK, FAIL or TIMEOUT
|
||||
*/
|
||||
virtual command_result command(const std::string &command, got_line_cb got_line, uint32_t time_ms, const char separator) = 0;
|
||||
|
@ -25,8 +25,8 @@ ESP_MODEM_DECLARE_DCE_COMMAND(sync, command_result, 0) \
|
||||
\
|
||||
/**
|
||||
* @brief Reads the operator name
|
||||
* @param[out] operator name
|
||||
* @param[out] access technology
|
||||
* @param[out] name operator name
|
||||
* @param[out] act access technology
|
||||
* @return OK, FAIL or TIMEOUT
|
||||
*/ \
|
||||
ESP_MODEM_DECLARE_DCE_COMMAND(get_operator_name, command_result, 2, STRING_OUT(p1, name), INT_OUT(p2, act)) \
|
||||
@ -46,7 +46,7 @@ ESP_MODEM_DECLARE_DCE_COMMAND(set_pin, command_result, 1, STRING_IN(p1, pin)) \
|
||||
\
|
||||
/**
|
||||
* @brief Execute the supplied AT command
|
||||
* @param[in] at AT command
|
||||
* @param[in] cmd AT command
|
||||
* @param[out] out Command output string
|
||||
* @param[in] timeout AT command timeout in milliseconds
|
||||
* @return OK, FAIL or TIMEOUT
|
||||
@ -252,6 +252,8 @@ ESP_MODEM_DECLARE_DCE_COMMAND(set_preferred_mode, command_result, 1, INT_IN(p1,
|
||||
/**
|
||||
* @brief Set network bands for CAT-M or NB-IoT
|
||||
* @param[in] mode CAT-M or NB-IoT
|
||||
* @param[in] bands bitmap in hex representing bands
|
||||
* @param[in] size size of teh bands bitmap
|
||||
* @return OK, FAIL or TIMEOUT
|
||||
*/ \
|
||||
ESP_MODEM_DECLARE_DCE_COMMAND(set_network_bands, command_result, 3, STRING_IN(p1, mode), INTEGER_LIST_IN(p2, bands), INT_IN(p3, size)) \
|
||||
|
@ -67,22 +67,19 @@ supports SIM800, BG96, SIM7600.
|
||||
Use cases
|
||||
---------
|
||||
|
||||
Users interact with the esp-modem using the DCE’s interface, to
|
||||
basically
|
||||
Users interact with the esp-modem using the DCE's interface, to basically
|
||||
|
||||
- Switch between command and data mode to connect to the internet via cellular network.
|
||||
- Send various commands to the device (e.g. send SMS)
|
||||
- Send various commands to the device (e.g. send SMS)
|
||||
|
||||
The applications typically register handlers for network events to
|
||||
receive notification on the network availability and IP address changes.
|
||||
|
||||
Common use cases of the esp-modem are also listed as the examples:
|
||||
|
||||
- ``examples/pppos_client`` – simple client which reads some module properties and switches to the data mode to connect to a public mqtt broker.
|
||||
- ``examples/modem_console`` – is an example to exercise all possible module commands in a console application.
|
||||
- ``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/pppos_client`` simple client which reads some module properties and switches to the data mode to connect to a public mqtt broker.
|
||||
- ``examples/modem_console`` is an example to exercise all possible module commands in a console application.
|
||||
- ``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.
|
||||
|
||||
Extensibility
|
||||
-------------
|
||||
@ -95,8 +92,8 @@ allows users to also issue commands in the data mode, after creating
|
||||
multiple virtual terminals, designating some of them solely to data
|
||||
mode, others solely to command mode.
|
||||
|
||||
DTE’s
|
||||
~~~~~
|
||||
DTE
|
||||
~~~
|
||||
|
||||
Currently, we support only UART (and USB as a preview feature), but
|
||||
modern modules support other communication interfaces, such as USB, SPI.
|
||||
|
Reference in New Issue
Block a user