From 020b407472dac0e34f122f75cecbd09ca59b4b60 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 2 Nov 2023 15:25:30 +0100 Subject: [PATCH] fix(modem): Fixed API docs within doxygen comments --- .../include/cxx_include/esp_modem_types.hpp | 1 + .../generate/esp_modem_command_declare.inc | 8 +++++--- docs/esp_modem/en/README.rst | 17 +++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/esp_modem/include/cxx_include/esp_modem_types.hpp b/components/esp_modem/include/cxx_include/esp_modem_types.hpp index 513b1f847..944427156 100644 --- a/components/esp_modem/include/cxx_include/esp_modem_types.hpp +++ b/components/esp_modem/include/cxx_include/esp_modem_types.hpp @@ -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; diff --git a/components/esp_modem/include/generate/esp_modem_command_declare.inc b/components/esp_modem/include/generate/esp_modem_command_declare.inc index 3664963e5..70f3a83be 100644 --- a/components/esp_modem/include/generate/esp_modem_command_declare.inc +++ b/components/esp_modem/include/generate/esp_modem_command_declare.inc @@ -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)) \ diff --git a/docs/esp_modem/en/README.rst b/docs/esp_modem/en/README.rst index 4542b5447..cab8b8745 100644 --- a/docs/esp_modem/en/README.rst +++ b/docs/esp_modem/en/README.rst @@ -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.