WIP
This commit is contained in:
parent
d066c326e3
commit
14359a05c4
@ -1,13 +1,12 @@
|
|||||||
# ESP32 ESP-IDF and ESP8266 RTOS SDK component for ESP-NOW interface
|
# ESP32 ESP-IDF component for ESP-NOW interface
|
||||||
|
|
||||||
## Tested on
|
## Tested on
|
||||||
|
|
||||||
1. ESP8266 RTOS_SDK v3.4
|
ESP32 ESP-IDF v5.4
|
||||||
2. ESP32 ESP-IDF v5.2
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
1. The maximum size of transmitted data is up to 250 bytes.
|
1. The maximum size of transmitted data is up to 1490 bytes.
|
||||||
2. Support of any data types.
|
2. Support of any data types.
|
||||||
3. All nodes are not visible to the network scanner.
|
3. All nodes are not visible to the network scanner.
|
||||||
4. Not required a pre-pairings for data transfer.
|
4. Not required a pre-pairings for data transfer.
|
||||||
|
@ -1 +1 @@
|
|||||||
1.0.4
|
2.0.0
|
1
zh_espnow.c
Normal file → Executable file
1
zh_espnow.c
Normal file → Executable file
@ -68,6 +68,7 @@ esp_err_t zh_espnow_init(const zh_espnow_init_config_t *config)
|
|||||||
ESP_LOGW(TAG, "ESP-NOW initialization warning. The device is connected to the router. Channel %d will be used for ESP-NOW.", prim);
|
ESP_LOGW(TAG, "ESP-NOW initialization warning. The device is connected to the router. Channel %d will be used for ESP-NOW.", prim);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
esp_wifi_set_protocol(_init_config.wifi_interface, WIFI_PROTOCOL_11B| WIFI_PROTOCOL_LR);
|
||||||
_event_group_handle = xEventGroupCreate();
|
_event_group_handle = xEventGroupCreate();
|
||||||
_queue_handle = xQueueCreate(_init_config.queue_size, sizeof(_queue_t));
|
_queue_handle = xQueueCreate(_init_config.queue_size, sizeof(_queue_t));
|
||||||
if (esp_now_init() != ESP_OK || esp_now_register_send_cb(_send_cb) != ESP_OK || esp_now_register_recv_cb(_recv_cb) != ESP_OK)
|
if (esp_now_init() != ESP_OK || esp_now_register_send_cb(_send_cb) != ESP_OK || esp_now_register_recv_cb(_recv_cb) != ESP_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user