Compare commits
3 Commits
a58048b14a
...
bb0a99ac2b
Author | SHA1 | Date | |
---|---|---|---|
bb0a99ac2b | |||
e2078e46b1 | |||
4433e03320 |
@@ -6,7 +6,7 @@ In an existing project, run the following command to install the component:
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
cd ../your_project/components
|
cd ../your_project/components
|
||||||
git clone http://git.zh.com.ru/alexey.zholtikov/zh_config.git
|
git clone https://github.com/aZholtikov/zh_config.git
|
||||||
```
|
```
|
||||||
|
|
||||||
In the application, add the component:
|
In the application, add the component:
|
||||||
|
@@ -44,9 +44,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
* @note Before initialize ESP-NOW interface recommend initialize zh_espnow_init_config_t structure with default values.
|
* @note Before initialize ESP-NOW interface recommend initialize zh_espnow_init_config_t structure with default values.
|
||||||
*
|
*
|
||||||
* @code
|
* @code zh_espnow_init_config_t config = ZH_ESPNOW_INIT_CONFIG_DEFAULT() @endcode
|
||||||
* zh_espnow_init_config_t config = ZH_ESPNOW_INIT_CONFIG_DEFAULT()
|
|
||||||
* @endcode
|
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -85,7 +83,6 @@ extern "C"
|
|||||||
* @brief Structure for sending data to the event handler when an ESP-NOW message was sent.
|
* @brief Structure for sending data to the event handler when an ESP-NOW message was sent.
|
||||||
*
|
*
|
||||||
* @note Should be used with ZH_ESPNOW event base and ZH_ESPNOW_ON_SEND_EVENT event.
|
* @note Should be used with ZH_ESPNOW event base and ZH_ESPNOW_ON_SEND_EVENT event.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -110,9 +107,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
* @note Before initialize ESP-NOW interface recommend initialize zh_espnow_init_config_t structure with default values.
|
* @note Before initialize ESP-NOW interface recommend initialize zh_espnow_init_config_t structure with default values.
|
||||||
*
|
*
|
||||||
* @code
|
* @code zh_espnow_init_config_t config = ZH_ESPNOW_INIT_CONFIG_DEFAULT() @endcode
|
||||||
* zh_espnow_init_config_t config = ZH_ESPNOW_INIT_CONFIG_DEFAULT()
|
|
||||||
* @endcode
|
|
||||||
*
|
*
|
||||||
* @param[in] config Pointer to ESP-NOW initialized configuration structure. Can point to a temporary variable.
|
* @param[in] config Pointer to ESP-NOW initialized configuration structure. Can point to a temporary variable.
|
||||||
*
|
*
|
||||||
|
@@ -1 +1 @@
|
|||||||
1.2.6
|
1.0.0
|
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* The main code of the zh_espnow component.
|
* The main code of the zh_espnow component.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "zh_espnow.h"
|
#include "zh_espnow.h"
|
||||||
|
@@ -46,7 +46,7 @@ char example[10] = {0};
|
|||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
// esp_log_level_set("zh_vector", ESP_LOG_NONE);
|
esp_log_level_set("zh_vector", ESP_LOG_NONE);
|
||||||
zh_vector_init(&vector, sizeof(example), false);
|
zh_vector_init(&vector, sizeof(example), false);
|
||||||
printf("Initial vector size is: %d\n", zh_vector_get_size(&vector));
|
printf("Initial vector size is: %d\n", zh_vector_get_size(&vector));
|
||||||
strcpy(example, "Item 1");
|
strcpy(example, "Item 1");
|
||||||
|
@@ -1 +1 @@
|
|||||||
1.4.6
|
1.0.0
|
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* The main code of the zh_vector component.
|
* The main code of the zh_vector component.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "zh_vector.h"
|
#include "zh_vector.h"
|
||||||
|
Reference in New Issue
Block a user