EasyManua.ls Logo

Espressif ESP32-S2 - Page 161

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
bool esp_mesh_is_my_group(const mesh_addr_t *addr)
Check whether the specified group address is my group.
Return true/false
esp_err_t esp_mesh_set_capacity_num(int num)
Set mesh network capacity (max:1000, default:300)
Attention This API shall be called before mesh is started.
Return
ESP_OK
ESP_ERR_MESH_NOT_ALLOWED
ESP_MESH_ERR_ARGUMENT
Parameters
[in] num: mesh network capacity
int esp_mesh_get_capacity_num(void)
Get mesh network capacity.
Return mesh network capacity
esp_err_t esp_mesh_set_ie_crypto_funcs(const mesh_crypto_funcs_t *crypto_funcs)
Set mesh IE crypto functions.
Attention This API can be called at any time after mesh is initialized.
Return
ESP_OK
Parameters
[in] crypto_funcs: crypto functions for mesh IE
If crypto_funcs is set to NULL, mesh IE is no longer encrypted.
esp_err_t esp_mesh_set_ie_crypto_key(const char *key, int len)
Set mesh IE crypto key.
Attention This API can be called at any time after mesh is initialized.
Return
ESP_OK
ESP_MESH_ERR_ARGUMENT
Parameters
[in] key: ASCII crypto key
[in] len: length in bytes, range:8~64
esp_err_t esp_mesh_get_ie_crypto_key(char *key, int len)
Get mesh IE crypto key.
Return
ESP_OK
ESP_MESH_ERR_ARGUMENT
Parameters
[out] key: ASCII crypto key
[in] len: length in bytes, range:8~64
esp_err_t esp_mesh_set_root_healing_delay(int delay_ms)
Set delay time before starting root healing.
Return
ESP_OK
Parameters
[in] delay_ms: delay time in milliseconds
int esp_mesh_get_root_healing_delay(void)
Get delay time before network starts root healing.
Return delay time in milliseconds
Espressif Systems 150
Submit Document Feedback
Release v4.4

Table of Contents