fix: error sending more than 255 bytes
This commit is contained in:
parent
7c4650d87a
commit
945aa9ea5c
@ -100,7 +100,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
* @return ESP_OK if success or an error code otherwise.
|
* @return ESP_OK if success or an error code otherwise.
|
||||||
*/
|
*/
|
||||||
esp_err_t zh_espnow_send(const uint8_t *target, const uint8_t *data, const uint8_t data_len);
|
esp_err_t zh_espnow_send(const uint8_t *target, const uint8_t *data, const uint16_t data_len);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get ESP-NOW version.
|
* @brief Get ESP-NOW version.
|
||||||
|
@ -1 +1 @@
|
|||||||
1.1.0
|
1.1.1
|
@ -215,7 +215,7 @@ esp_err_t zh_espnow_deinit(void)
|
|||||||
return final_status;
|
return final_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
esp_err_t zh_espnow_send(const uint8_t *target, const uint8_t *data, const uint8_t data_len)
|
esp_err_t zh_espnow_send(const uint8_t *target, const uint8_t *data, const uint16_t data_len)
|
||||||
{
|
{
|
||||||
ZH_ESPNOW_LOGI("Adding to queue outgoing ESP-NOW data to MAC %02X:%02X:%02X:%02X:%02X:%02X started.", MAC2STR((target == NULL) ? _broadcast_mac : target));
|
ZH_ESPNOW_LOGI("Adding to queue outgoing ESP-NOW data to MAC %02X:%02X:%02X:%02X:%02X:%02X started.", MAC2STR((target == NULL) ? _broadcast_mac : target));
|
||||||
if (_is_initialized == false)
|
if (_is_initialized == false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user