-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from xkevin190/fix_doc_wifi_subsys
doc: Fixed the documentation in wifi-subsys
- Loading branch information
Showing
13 changed files
with
81 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
@defgroup wifi-subusys-protocols Protocols routines | ||
@ingroup wifi-subsys | ||
@brief this module content all protocols used for wifi- subsys | ||
|
||
# Overview | ||
|
||
In this module are all the protocols used by wifi-subys, the protocols used are: | ||
|
||
1) icmp: this is used to check if esp32 is connected. | ||
|
||
2) http_client: the http client will be used to send the data that arrives from the peripherals to the server. | ||
|
||
3) sntp: this protocol is used to synchronize the time on the esp32 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ | |
*/ | ||
|
||
/** | ||
* | ||
* @ingroup wifi-subusys-protocols | ||
* @{ | ||
* @file | ||
* @brief icmp module | ||
* @copyright Copyright (c) 2021 Mesh for all | ||
* @author xkevin190 <[email protected]> | ||
* | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,9 @@ | |
|
||
/** | ||
* | ||
* @ingroup wifi-subsys_components | ||
* @ingroup wifi-subusys-protocols | ||
* @{ | ||
* @file | ||
* @brief sntp (Simple Network Time Protocol) | ||
* @author eduazocar <[email protected]> | ||
* | ||
|
@@ -37,7 +38,6 @@ extern "C" { | |
/** | ||
* @brief Define a callback to every time function | ||
*/ | ||
|
||
typedef void (*callback_time_t)(void); | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
@defgroup wifi-subsys-tools Tools | ||
@ingroup wifi-subsys | ||
@brief module created to contain the reusable functions in wifi-subsys | ||
|
||
# Overview | ||
In this module all the reusable functions in wifi subsys will be allocated, at this moment we only have the serialization functions. | ||
*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ | |
*/ | ||
|
||
/** | ||
* | ||
* @ingroup wifi-subsys-tools | ||
* @{ | ||
* @brief Cbor encoder and decoder functions to manipulate a group of data. | ||
* | ||
* @file | ||
* @author xkevin190 <[email protected]> | ||
* @author eduazocar <[email protected]> | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
@defgroup wifi_subsys_uart Wifi-subsys Uart Module | ||
@ingroup wifi-subsys | ||
@brief Basic implementation of uart functions for wifi subsys | ||
|
||
# Overview | ||
Basic routines for handle the uart, here you can send and receive data through uart. | ||
In this module also you can send AT COMMANDS and to handle of the board settings. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,10 @@ | |
*/ | ||
|
||
/** | ||
* @ingroup wifi-subsys_components | ||
* @ingroup wifi_subsys_uart | ||
* @brief AT handler | ||
* @{ | ||
* @brief uart module | ||
* @file | ||
* @author xkevin190 <[email protected]> | ||
*/ | ||
|
||
|
@@ -32,18 +33,9 @@ extern "C" | |
#endif | ||
|
||
/** | ||
* @name this struct content the key and value of the AT request | ||
* @name All AT commands | ||
* @{ | ||
*/ | ||
typedef struct { | ||
char *value; /*!< AT value */ | ||
char *key; /*!< AT key */ | ||
char action[2];/*!< AT action */ | ||
char read_or_write[2]; /*!< AT type */ | ||
} at_request_t; | ||
/** @} */ | ||
|
||
|
||
enum at_keys_n { | ||
NVS_RST = 0, /*!< Restore the subsystem to factory settings */ | ||
WIFI_OFF, /*!< Turn off the WiFi interface */ | ||
|
@@ -59,6 +51,19 @@ enum at_keys_n { | |
ATH, /*!< this will enable at mode */ | ||
ATHO, /*!< this will disable at mode */ | ||
}; | ||
/** @} */ | ||
|
||
/** | ||
* @name this struct content the key and value of the AT request | ||
* @{ | ||
*/ | ||
typedef struct { | ||
char *value; /*!< AT value */ | ||
char *key; /*!< AT key */ | ||
char action[2];/*!< AT action */ | ||
char read_or_write[2]; /*!< AT type */ | ||
} at_request_t; | ||
/** @} */ | ||
|
||
/** | ||
* @brief this function is a handler where will be identified AT commands | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,13 @@ | |
*/ | ||
|
||
/** | ||
* | ||
* @brief uart module | ||
* | ||
* @ingroup wifi_subsys_uart | ||
* @brief Uart module | ||
* @{ | ||
* @file | ||
* @author xkevin190 <[email protected]> | ||
* | ||
* | ||
*/ | ||
#ifndef SUBSYS_UART_H | ||
#define SUBSYS_UART_H | ||
|
@@ -29,10 +31,6 @@ | |
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
/** | ||
* @brief this struct content the key and value of the AT request | ||
* | ||
*/ | ||
|
||
/** | ||
* @brief this function initialize the uart | ||
|
@@ -55,6 +53,7 @@ void rx_receive(); | |
* | ||
*/ | ||
void tx_send_loop(); | ||
|
||
/** | ||
* @brief this function is executed when rx_receive function identify | ||
* that the datos arrived were sensors values. | ||
|
@@ -64,10 +63,10 @@ void tx_send_loop(); | |
void received_sensor_data(uint8_t *values); | ||
|
||
/** | ||
* @brief this function is a handler where will be identified AT commands | ||
* and it will executed the functions for controlled the wifi. | ||
* @brief this function is used to send data through uart | ||
* | ||
* @param at_comant [in] AT comands | ||
* @param logName [in] logName | ||
* @param data [in] data | ||
*/ | ||
int sendData(const char *logName, char *data); | ||
|
||
|
@@ -82,3 +81,4 @@ esp_err_t setting_uart(); | |
} | ||
#endif | ||
#endif /* SUBSYS_UART_H */ | ||
/* @} */ |